[PR #506] [CLOSED] A way to speed-up login on slow CPU #1274

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/506
Author: @R-II
Created: 12/24/2016
Status: Closed

Base: masterHead: master


📝 Commits (4)

  • 76af28a php artisan koel:init-cache
  • 855f470 php artisan koel:init-cache
  • 39f4255 php artisan koel:init-cache
  • ecc7351 php artisan koel:init-cache

📊 Changes

3 files changed (+149 additions, -24 deletions)

View changed files

app/Console/Commands/InitCache.php (+115 -0)
📝 app/Console/Kernel.php (+1 -0)
📝 app/Http/Controllers/API/DataController.php (+33 -24)

📄 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/506 **Author:** [@R-II](https://github.com/R-II) **Created:** 12/24/2016 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (4) - [`76af28a`](https://github.com/koel/koel/commit/76af28a900462d09fa53c5a125a017f99df936d6) php artisan koel:init-cache - [`855f470`](https://github.com/koel/koel/commit/855f470935c98146285c6b93d235dc981635ad2e) php artisan koel:init-cache - [`39f4255`](https://github.com/koel/koel/commit/39f4255f930ad509a5c60d28d8eb4c0ab9d574d6) php artisan koel:init-cache - [`ecc7351`](https://github.com/koel/koel/commit/ecc73512d7e5bb35f15594e0c1163ae78f18fd95) php artisan koel:init-cache ### 📊 Changes **3 files changed** (+149 additions, -24 deletions) <details> <summary>View changed files</summary> ➕ `app/Console/Commands/InitCache.php` (+115 -0) 📝 `app/Console/Kernel.php` (+1 -0) 📝 `app/Http/Controllers/API/DataController.php` (+33 -24) </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#1274
No description provided.