Thread: Calibre cache
View Single Post
Old 10-20-2019, 06:29 AM   #9
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,230
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by kovidgoyal View Post
Simply create a bat file that does

set CALIBRE_CACHE_DIRECTORY=C:/whtever
ebook-viewer %1
deltree C:/whatever

and use that to launch the viewer.
Awesome! This is perfect. I changed the icon in the registry to match the viewer and now it looks exactly like before, but using a different cache.

Just changed it a bit:

Code:
@echo off
set CALIBRE_CACHE_DIRECTORY=C:\whatever
start ebook-viewer.exe %1
rd /s /q C:\whatever
Deltree is gone in windows.


Quote:
Originally Posted by kovidgoyal View Post
No, the cache is managed automatically. IIRC any book that has not been read for 30 days will be purged the next time the viewer is opened.
Well, then maybe it was not a real problem, after all... It wouldn't grow indefinitely.

Last edited by thiago.eec; 10-20-2019 at 06:32 AM.
thiago.eec is offline   Reply With Quote