![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 256
Karma: 100000
Join Date: Oct 2012
Device: Calibre
|
content-server and CALIBRE_CACHE_DIRECTORY
Running the content-server, I noticed my CALIBRE_CACHE_DIRECTORY gets very large (>2 GB) very quickly. Why is this? What are all the temp files for? It appears many of the actual PDFs etc. are being copied to the cache directory. Does this have something to do with zero-copy file transfers?
|
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,185
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
When the content server sends files it has to update metadata in them, and it does not do that to the copies in the library. Which means it has to make a copy of the file outside the library. Those files are kept around so that the operation does not need to be repeated each time a request for the file is made.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 562
Karma: 32158
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Are you talking about the srvb folder?
It has become a problem for me to sync the whole Calibre Portable to Cloud services (I currently choose to ignore that folder). Maybe Calibre should clean it up time by time based on the last access date, or set a size limit? |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,185
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It's a cache folder, why are you syncing it? calibre portable has to use only the portable folder for everything, so if you are using calibre portable, simply exclude the cache folder from your syncs.
|
![]() |
![]() |
![]() |
#5 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 256
Karma: 100000
Join Date: Oct 2012
Device: Calibre
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,185
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre cleans up temp files automatically, you should never delete temp files while it is running
|
![]() |
![]() |
![]() |
#7 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 256
Karma: 100000
Join Date: Oct 2012
Device: Calibre
|
|
![]() |
![]() |
![]() |
#8 |
Handy Elephant
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
|
Calibre implements lazy update of ebooks. If you update metadata for a book this is updated in the database but not inside the actual ebook file. When you send the ebook file the ebook file is updated in the sent copy of the ebook file. Possibly based on plugboards and/or when converted.
This means that ebook files don't have to be updated all the time. They can stay unchanged in their original pristine state. This is very good for safety reasons as well as for performance reasons. You may change metadata many times, for instance in batch jobs, but you might never actually send/save a copy of the ebook file. Or just a few times compared to how often you may update metadata. To update metadata in the database is very fast. To update metadata in the ebook file is very slow. In comparison, at least. It is possible to to force calibre to update metadata inside the ebook files. In effect overwriting the original ebook file. Make sure you have good backups before you do that... Last edited by Adoby; 12-12-2018 at 05:55 PM. |
![]() |
![]() |
![]() |
#9 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 256
Karma: 100000
Join Date: Oct 2012
Device: Calibre
|
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
When you edit metadata in the library, calibre does not update the actual book. It only updates the database. The books will be updated when you do something that takes the book out of the library, such as doing a save-to-disk or send-to-device and when downloading the book using the server. If you want the book inside the library updated, it will be done during actions such as a conversion, editing the book, Polish books or using the Embed metadata function.
|
![]() |
![]() |
![]() |
#11 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,727
Karma: 168431851
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Short and simple answer is any metadata that was not read from the ebook during the import process.
To expand a bit, some people may be happy with the crap that passes for metadata in many downloaded ebooks. Others prefer to correct errors, add a decent cover image, etc. For many people, their workflow is download the book and import it into calibre. Then they update the metadata since the series is missing or incorrect, the book comment is blank, perhaps you want to update the cover, correct the author name since you are CERTAIN that Unknown did not write the book, they want to remove the mass of tags that many authors/publishers seem to use to "optimize" their books showing up in searches and replace them with more useful (to you) tags, etc. This modified information is not added to the copy of the book in your calibre library unless you deliberately choose to do so (Polish, Embed Metadata, Modify Epub, whatever). When you export the book from your library by sending to your device, saving to a folder or download from the content server, prior to sending the book, a temporary copy will be created and updated with that modified metadata. Hopefully, this helps you a bit. Last edited by DNSB; 09-05-2021 at 12:41 AM. |
![]() |
![]() |
![]() |
#12 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 256
Karma: 100000
Join Date: Oct 2012
Device: Calibre
|
Quote:
|
|
![]() |
![]() |
![]() |
#13 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,078
Karma: 144284144
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
IMHO, the default should be to not update the metadata like is done now and let the user turn that on if wanted. |
|
![]() |
![]() |
![]() |
#14 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,616
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
![]() |
![]() |
![]() |
Tags |
content-server |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
installing Calibre content server 3 on ubuntu server 16_04 | khyox | Calibre | 22 | 01-06-2018 11:34 PM |
Content server on ubuntu 12.04 headless server ImageMagick: libltdl.so.7 | Cool Javelin | Calibre | 5 | 04-08-2015 02:20 AM |
Calibre Content Server and Windows Home Server 2011 | HughMcC | Calibre | 8 | 10-01-2014 07:26 AM |
500 Internal Server Error accessing content server Calibre 0.8.8 | DaddyO57 | Calibre | 1 | 07-20-2012 06:08 PM |
Content server not serving all content. | False_Chicken | Calibre | 0 | 10-19-2011 05:56 PM |