Menu

#15 Cache removal

1.0
open
nobody
None
2014-03-06
2012-03-12
 NK 
No

I think it would be great to be able to delete the cache sometimes, other than by logging into an FTP server and delete it manually.

Either because we are modifying the code, and we need too see the modifications,
or because we need to 'update now' the feed in the BitTorrent client, which isn't possible unless we modify the feed URL in the client (using bypass_cache)...

So basically, if we need to delete the cache for a feed, some link like this:
tpb-rss.php? key=MySecretCode &user=TvTeam &remove_cache
would be really handy.

Actually, it's more like an update_now feature.

I propose something like that:

if(isset($_GET["remove_cache"]))
{
    unlink($cacheFilename);

    if($_GET["remove_cache"] == 'no_update') //just delete, no update
    {
        die("Cache deleted");
    }
}

I attached a patch with this solution implemented :)

1 Attachments

Discussion

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB