Frage

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?

War es hilfreich?

Lösung

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.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top