Kodi Community Forum

Full Version: endOfDirectory cacheToDisc argument
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
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
Thanks for the reply and thorough explanation. When you say re-word the existing documentation, are you referring to the pydocs?
Yup.