Skip to content
Snippets Groups Projects
Commit 2eccbdaa authored by Gina Haeussge's avatar Gina Haeussge
Browse files

FS#1234: If useheading is enabled, purge the cache of backlinks upon save

darcs-hash:20081011164342-2b4f5-b2e26e17ce970927ddbc0c5b888815063d613b0e.gz
parent e6a873d7
No related branches found
No related tags found
No related merge requests found
......@@ -926,6 +926,16 @@ function saveWikiText($id,$text,$summary,$minor=false){
// update the purgefile (timestamp of the last time anything within the wiki was changed)
io_saveFile($conf['cachedir'].'/purgefile',time());
// if useheading is enabled, purge the cache of all linking pages
if($conf['useheading']){
require_once(DOKU_INC.'inc/fulltext.php');
$pages = ft_backlinks($id);
foreach ($pages as $page) {
$cache = new cache_renderer($page, wikiFN($page), 'xhtml');
$cache->removeCache();
}
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment