Question

I am using Cache::FileCache and the cache stored in /tmp/FileCache/

In the /tmp/FileCache/ there are 3 dirs:

  • __AUTO_PURGE__
  • Default
  • namespace

Which one is safe to deletes to clear the cache?

Was it helpful?

Solution

Cache::FileCache implements the Cache::Cache interface.

Instead of messing directly with the filesystem, you might want to write a short script such as

use strict; use warnings;
use Cache::FileCache;

my $cache = Cache::FileCache->new(
   {namespace => 'whatever namespace you are using'}
);
$cache->clear; # or Clear to remove all objects from all caches of this type.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top