cacheTime=0 does not work as expected

I want to refresh the source page each time I access it
I've run into a snag with a couple of my plugins. In both cases, users interact with the source webpages. The interactions are handled primarily by HTTP requests. The problem I'm having is that the changes in the webpage caused by the user interaction is not being picked up by the plugin because the plugin keeps loading the page from cache

I have tried setting a zero cache time for the relevant requests, like so:

HTTP.Request(url, errors='ignore', cacheTime=0).content



I've tried (even though it's not recommended) setting the global cache time in the Start() function, like so:

HTTP.CacheTime=0



Neither one on its own or combined has the desired effect. Exiting the plugin and restarting it (and/or Plex and PMS) cannot reliably cause the cache to refresh.

Am I missing something? Is this possibly a limitation of the Framework? (I'm coding for v2 framework, if it matters).

Any thoughts on the matter would be appreciated.

Hmm, the cacheTime=0 worked for me last week with CouchPotatoe fix. Wonder what’s different?



That said, I vaguely remember something about a bug with cacheTime=0, have you tried cacheTime=1?




I haven't tried just using a small cache like that. I'll give that a try. Thanks for the tip.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.