문제

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?

도움이 되었습니까?

해결책

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.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top