Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Persist thumbnails cache? #295

Closed
1 task done
bossanova808 opened this issue May 19, 2024 · 4 comments
Closed
1 task done

[FEAT] Persist thumbnails cache? #295

bossanova808 opened this issue May 19, 2024 · 4 comments

Comments

@bossanova808
Copy link

Is this a new feature request?

  • I have searched the existing issues

Wanted change

Calibre-web can take a long time to generate it's thumbnail cache. For my library (~5000 books), it's about 90 minutes currently but I have seen reports from others with much larger libraries of many (12+) hours. For me, in that 90 minute window, calibre-web is effectively unusable, it's so slow.

It seems the complete thumbnail generation process needs to be re-done every time the container is updated (and has to be manually kicked off, or a once-a-day scheduled task made within the admin UI).

Would it not make sense to persist this cache (inside the container at /app/calibre-web/cps/cache/thumbnails) on the host so that's it's available immediately and the work does not need to be re-done each time?

I have calibre-web on a Digital Ocean VPS, with the books/database on Cloudflare R2 via an rclone mount, which of course does not help speed-wise. However, once the thumbnails are generated, everything is very speedy.

Reason for change

Speed!

Proposed code change

Modify the docker file such that we can use a host volume for the thumbnail cache.

Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@bossanova808
Copy link
Author

(and if not - a task at container start that kicks off the thumbnail generation automatically would at least be a useful extra!)

@drizuid
Copy link
Member

drizuid commented Jun 2, 2024

I don't think that this is something we will add in, but nothing stops you from just adding another bind mount.

-v /some/persistent/path/thumbnails:/app/calibre-web/cps/cache/thumbnails

@bossanova808
Copy link
Author

Ah thanks - I didn't realise you could arbitrarily mount into the container like that, I thought it had to be specified points.

That's great, should solve the issue indeed.

@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants