summaryrefslogtreecommitdiff
path: root/fml/lib/FML
diff options
context:
space:
mode:
authorfukachan <fukachan>2004-02-26 08:24:32 +0000
committerfukachan <fukachan>2004-02-26 08:24:32 +0000
commit4fc0f0590e67fa3ca82d11ef6f235633099d271d (patch)
treea82a0372983beb93ca2c6ed30ef011e64011d761 /fml/lib/FML
parent5b90a088f34dfa501620c85331cac335c08e33e0 (diff)
downloadfml8-4fc0f0590e67fa3ca82d11ef6f235633099d271d.tar.gz
fml8-4fc0f0590e67fa3ca82d11ef6f235633099d271d.tar.bz2
fml8-4fc0f0590e67fa3ca82d11ef6f235633099d271d.zip
firstly, constructor() expires too old cache.
Diffstat (limited to 'fml/lib/FML')
-rw-r--r--fml/lib/FML/Error/Cache.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/fml/lib/FML/Error/Cache.pm b/fml/lib/FML/Error/Cache.pm
index f434001b..6df1f62a 100644
--- a/fml/lib/FML/Error/Cache.pm
+++ b/fml/lib/FML/Error/Cache.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: Cache.pm,v 1.17 2004/01/01 08:48:41 fukachan Exp $
+# $FML: Cache.pm,v 1.18 2004/01/31 14:12:17 fukachan Exp $
#
package FML::Error::Cache;
@@ -61,6 +61,10 @@ sub new
$curproc->mkdir($db_dir, "mode=private");
}
+ use Tie::JournaledDir;
+ my $obj = new Tie::JournaledDir { dir => $db_dir };
+ $obj->expire();
+
return bless $me, $type;
}