Kodi Community Forum
endOfDirectory cacheToDisc argument - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: endOfDirectory cacheToDisc argument (/showthread.php?tid=127345)



endOfDirectory cacheToDisc argument - jbel - 2012-03-31

Can anyone give more detail on how the caching works?

- How long are the directories cached for?
- Is the cache key url + query string?
- What is the threshold for CACHE_IF_SLOW?

Thanks!


RE: endOfDirectory cacheToDisc argument - jmarshall - 2012-04-01

They're cached until the user re-requests the directory by clicking on it (i.e. they're just read from the cache if they go from media window -> video playing -> media window -> home -> media window). To get them re-read, the user must go up to the parent directory then back in.

The default time is I think either 1 or 1.5 seconds (this is the CACHE_IF_SLOW).

The cache key is the full URL path from XBMC's perspective.

Please let me know how to best re-word the existing documentation Smile

Cheers,
Jonathan


RE: endOfDirectory cacheToDisc argument - jbel - 2012-04-05

Thanks for the reply and thorough explanation. When you say re-word the existing documentation, are you referring to the pydocs?


RE: endOfDirectory cacheToDisc argument - jmarshall - 2012-04-05

Yup.