2017-09-08, 01:37
Hi Marcel,
I'm having some issue with cache and next episodes.
I use "path" parameter to restrict next episode's search to a defined path and every time I get a list of episodes, it gets stored in the cache regardless of the path I'm passing as an argument.
Example:
1. clear simplecache.db
2. navigate to "Stand Up" menu item
3. next episodes widgets loads with path "nfs://192.168.1.77/standup"
4. navigate to "Tv Shows" menu item
5. next episodes widget loads episodes list from cache pointing to standup next episodes.
I think you are missing some kind of 2nd parameter to identify cached items. I suppose you just seek MEDIATYPE and ACTION regardless of the path
EDIT: went looking inside simplecache.db and cache string used is using exactly only MEDIATYPE and ACTION:
"SkinHelper.Widgets.episodes.next"
"SkinHelper.Widgets.episodes.nextaired"
What could be done with this?!
EDIT2: Perhaps add checksum to cache string as a suffix?
example:
"SkinHelper.Widgets.episodes.next.730"
"SkinHelper.Widgets.episodes.nextaired.730"
EDIT3: Just fixed it myself and made a pull request
Thanks
I'm having some issue with cache and next episodes.
I use "path" parameter to restrict next episode's search to a defined path and every time I get a list of episodes, it gets stored in the cache regardless of the path I'm passing as an argument.
Example:
1. clear simplecache.db
2. navigate to "Stand Up" menu item
3. next episodes widgets loads with path "nfs://192.168.1.77/standup"
4. navigate to "Tv Shows" menu item
5. next episodes widget loads episodes list from cache pointing to standup next episodes.
I think you are missing some kind of 2nd parameter to identify cached items. I suppose you just seek MEDIATYPE and ACTION regardless of the path
EDIT: went looking inside simplecache.db and cache string used is using exactly only MEDIATYPE and ACTION:
"SkinHelper.Widgets.episodes.next"
"SkinHelper.Widgets.episodes.nextaired"
What could be done with this?!
EDIT2: Perhaps add checksum to cache string as a suffix?
example:
"SkinHelper.Widgets.episodes.next.730"
"SkinHelper.Widgets.episodes.nextaired.730"
EDIT3: Just fixed it myself and made a pull request
Thanks