endOfDirectory cacheToDisc argument

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
jbel Offline
Senior Member
Posts: 109
Joined: Apr 2009
Reputation: 5
Location: nyc
Post: #1
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!
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,230
Joined: Oct 2003
Reputation: 177
Post: #2
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

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
(This post was last modified: 2012-04-01 03:04 by jmarshall.)
find quote
jbel Offline
Senior Member
Posts: 109
Joined: Apr 2009
Reputation: 5
Location: nyc
Post: #3
Thanks for the reply and thorough explanation. When you say re-word the existing documentation, are you referring to the pydocs?
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,230
Joined: Oct 2003
Reputation: 177
Post: #4
Yup.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote