summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-11-12 21:15:33 +0100
committerintrigeri <intrigeri@boum.org>2008-11-12 21:18:48 +0100
commit10c4e858b8a090917d7a7dd41ef5fa08254ee935 (patch)
tree44545c620f279d9b51c179f46e63f90a38ef52a3 /IkiWiki/Plugin
parent776be85a229dd951e99de519b38ba22dace260b8 (diff)
po(change): flush Memoize cache, to fix bug after rename/remove
Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/po.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm
index 1212181ca..5e2aea691 100644
--- a/IkiWiki/Plugin/po.pm
+++ b/IkiWiki/Plugin/po.pm
@@ -364,6 +364,7 @@ sub change(@) { #{{{
# Reinitialize module's private variables.
resetalreadyfiltered();
resettranslationscache();
+ flushmemoizecache();
# Trigger a wiki refresh.
require IkiWiki::Render;
# without preliminary saveindex/loadindex, refresh()
@@ -658,6 +659,11 @@ sub resettranslationscache() { #{{{
undef %translations;
} #}}}
+sub flushmemoizecache() { #{{{
+ Memoize::flush_cache("_istranslation");
+ Memoize::flush_cache("percenttranslated");
+} #}}}
+
sub urlto_with_orig_beautiful_urlpath($$) { #{{{
my $to=shift;
my $from=shift;