[PR #507] [CLOSED] A way to speed-up login on slow CPU #1273

Closed
opened 2026-02-26 03:30:24 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/koel/koel/pull/507
Author: @R-II
Created: 12/24/2016
Status: Closed

Base: masterHead: master


📝 Commits (3)

  • ab1f423 php artisan koel:init-cache
  • 179b83b php artisan koel:init-cache
  • 85bbff3 php artisan koel:init-cache

📊 Changes

3 files changed (+153 additions, -22 deletions)

View changed files

app/Console/Commands/InitCache.php (+120 -0)
📝 app/Console/Kernel.php (+1 -0)
📝 app/Http/Controllers/API/DataController.php (+32 -22)

📄 Description

Hi,

I use Koel on a Raspberry 3, I have 20 000 songs, login takes around 50 seconds.
So I added a cache system that speed up the process to less than 10 seconds.

Just add php artisan koel:init-cache to your cron jobs and it'll cache everything that each user may need to login.

Works only with APC.

Cheers


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/koel/koel/pull/507 **Author:** [@R-II](https://github.com/R-II) **Created:** 12/24/2016 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (3) - [`ab1f423`](https://github.com/koel/koel/commit/ab1f423bbfc704ec1966017a9c02fbc55d7c0a56) php artisan koel:init-cache - [`179b83b`](https://github.com/koel/koel/commit/179b83b8293db4034b5e14dea8ed35eaaca46c14) php artisan koel:init-cache - [`85bbff3`](https://github.com/koel/koel/commit/85bbff305d65d2c2f314cc053b981230c3ff91c0) php artisan koel:init-cache ### 📊 Changes **3 files changed** (+153 additions, -22 deletions) <details> <summary>View changed files</summary> ➕ `app/Console/Commands/InitCache.php` (+120 -0) 📝 `app/Console/Kernel.php` (+1 -0) 📝 `app/Http/Controllers/API/DataController.php` (+32 -22) </details> ### 📄 Description Hi, I use Koel on a Raspberry 3, I have 20 000 songs, login takes around 50 seconds. So I added a cache system that speed up the process to less than 10 seconds. Just add ```php artisan koel:init-cache``` to your cron jobs and it'll cache everything that each user may need to login. Works only with APC. Cheers --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 03:30:24 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#1273
No description provided.