mirror of
https://github.com/koreader/koreader
synced 2024-11-16 06:12:56 +00:00
8c9751744e
so that when document is modified the persistent cache will be invalidated automatically because the cache key will not be matched. There is no perfermance overhead here at all. We even don't need to check the modification time of the cache item on disk, because the name of the on disk cache is a md5sum of the cacheitem key, now the filename of the cache files contains the modification time information. If the document is modified since one rendered page is cached to disk, the cache key won't match the cache file. And the cache file will be discarded without the need to open the cache file or to check the modification time of the cache file itself. |
||
---|---|---|
.. | ||
credocument.lua | ||
djvudocument.lua | ||
document.lua | ||
documentregistry.lua | ||
koptinterface.lua | ||
pdfdocument.lua | ||
picdocument.lua | ||
tilecacheitem.lua |