Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Clear cache #159
Clear cache #159
Conversation
…ra code from sample
…responding source info
|
Thank you for sharing these changes. I was just about to implement similar functionality myself. In my case, the content at the source periodically changes, but the URL doesn't and prior to this, there was no easy way to clean out the cache to force it to download new. |
|
good news . |
Hi, I added a couple of things that I needed so just wanted to see if you want them in original project as well. If not, nvm :)
I wanted to be able to:
I've noticed a problem - it seems that the info storage entries are never removed, even if the corresponding video is removed from cache. The entries may be small, but even if it takes thousands, it's a risk I can't take, so I had both of those operations above do the full storage clear and sigle entry clear respectively. I didn't try to implement this when the normal removal of old cached files is done, the "clear entire cache" thingy is enough for me, since I call that periodically.