CastagnaIT / plugin.video.netflix

InputStream based Netflix plugin for Kodi
MIT License
1.89k stars 258 forks source link

Clear Cache with updating the addon #1669

Open Falke-Design opened 6 months ago

Falke-Design commented 6 months ago

Feature request

I'm submitting a proposal to ...

Describe your request

I ran into the issue that my code change didn't applied because the data were stored in the cache and was not parsed again. So it would be helpful in the development process to clear the cache while installing an update of the addon

CastagnaIT commented 6 months ago

So it would be helpful in the development process to clear the cache while installing an update of the addon

the addon already clear the cache with an update process (version bump), but i think you are doing other things like editing addon files on kodi directory or similar ways

the only "problem" for you is the persistent cache, because the cache stored in memory will be lost when the addon will be disabled

for the few times that was needed to me investigate for problems like infolabels i know that there is needed go to addon Expert settings and select "Clear cache to disk" before opening any of the addon menus but I could understand that it's not an immediate thing to understand

i think the more easy way to prevent storing any data in cache is to add an early exit from cache methods, otherwise its needed rework too much things

i can try investigate on next weeks so that add a new child setting to the debug setting