#14 Added function to clear the cache

open
nobody
None
5
2007-02-07
2007-02-07
Anonymous
No

I encountered a situation where I wanted to clear the cache so that RSS feeds (being provided elsewhere in different parts of my own framework) that have just been updated are reflected immediately in the pages using the Magpie RSS aggregator.

Maybe it will turn out useful for other people too.

I just added a function to delete the files in the cache directory.

Discussion

  • Nobody/Anonymous

    Updated RSS Cache with extra clear_cache function

     
  • Nobody/Anonymous

    Logged In: NO

    Didnt find a way to add another file to this tracker, so I am just pasting it here. To make the new function usable you would also need this added to rss_fetch.inc :

    function clear_rss_cache()
    {
    init();

    $cache = new RSSCache( MAGPIE_CACHE_DIR, MAGPIE_CACHE_AGE );
    $cache->clear_cache();
    }

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks