Saturday, 15 January 2011

perl - How can I clear all cached objects using Cache::FileCache? -



perl - How can I clear all cached objects using Cache::FileCache? -

i using cache::filecache , cache stored in /tmp/filecache/

in /tmp/filecache/ there 3 dirs:

__auto_purge__ default namespace

which 1 safe deletes clear cache?

cache::filecache implements cache::cache interface.

instead of messing straight filesystem, might want write short script such as

use strict; utilize warnings; utilize cache::filecache; $cache = cache::filecache->new( {namespace => 'whatever namespace using'} ); $cache->clear; # or clear remove objects caches of type.

perl mod-perl

No comments:

Post a Comment