po(change): flush Memoize cache, to fix bug after rename/remove
Signed-off-by: intrigeri <intrigeri@boum.org>master
parent
776be85a22
commit
10c4e858b8
|
@ -364,6 +364,7 @@ sub change(@) { #{{{
|
||||||
# Reinitialize module's private variables.
|
# Reinitialize module's private variables.
|
||||||
resetalreadyfiltered();
|
resetalreadyfiltered();
|
||||||
resettranslationscache();
|
resettranslationscache();
|
||||||
|
flushmemoizecache();
|
||||||
# Trigger a wiki refresh.
|
# Trigger a wiki refresh.
|
||||||
require IkiWiki::Render;
|
require IkiWiki::Render;
|
||||||
# without preliminary saveindex/loadindex, refresh()
|
# without preliminary saveindex/loadindex, refresh()
|
||||||
|
@ -658,6 +659,11 @@ sub resettranslationscache() { #{{{
|
||||||
undef %translations;
|
undef %translations;
|
||||||
} #}}}
|
} #}}}
|
||||||
|
|
||||||
|
sub flushmemoizecache() { #{{{
|
||||||
|
Memoize::flush_cache("_istranslation");
|
||||||
|
Memoize::flush_cache("percenttranslated");
|
||||||
|
} #}}}
|
||||||
|
|
||||||
sub urlto_with_orig_beautiful_urlpath($$) { #{{{
|
sub urlto_with_orig_beautiful_urlpath($$) { #{{{
|
||||||
my $to=shift;
|
my $to=shift;
|
||||||
my $from=shift;
|
my $from=shift;
|
||||||
|
|
|
@ -592,10 +592,8 @@ Robustness tests
|
||||||
### Creating pages
|
### Creating pages
|
||||||
|
|
||||||
- creating a master page via RCS: **OK**
|
- creating a master page via RCS: **OK**
|
||||||
- creating a master page via CGI: **FIXME** the new page's
|
- creating a master page via CGI: **FIXME** the new master page has no
|
||||||
translations are rendered as if they weren't translations (i.e.
|
`otherlanguages` links until refreshed once more
|
||||||
`targetpage=newpage.LL/index.html`, and no de-gettext-isation);
|
|
||||||
touch'ing `newpage.mdwn` + refresh does not fix it, rebuild does.
|
|
||||||
|
|
||||||
### Deleting pages
|
### Deleting pages
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue