Pergunta

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?

Foi útil?

Solução

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.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top