2013-09-28, 16:24
I'd like to add something like a small cache system to my plugin.
Every time user select/click, a html or a json is remotely loaded.
I'd like to save into a file what's been downloaded, and, for just one hour, to use it for future refresh instead of re-download the content.
I need actaully no info about file handling, what I need to know is: if plugin dir is read only (or it must be handled as readonly), if I want to save something, in which dir can I save tmp data? Or there is some xbmc default way to handle cases like this?
I downloaded some addons I consider 'good' and It seems like no one of these uses caching tricks...
Every time user select/click, a html or a json is remotely loaded.
I'd like to save into a file what's been downloaded, and, for just one hour, to use it for future refresh instead of re-download the content.
I need actaully no info about file handling, what I need to know is: if plugin dir is read only (or it must be handled as readonly), if I want to save something, in which dir can I save tmp data? Or there is some xbmc default way to handle cases like this?
I downloaded some addons I consider 'good' and It seems like no one of these uses caching tricks...