diff options
author | Michael Hamann <michael@content-space.de> | 2013-07-31 17:20:00 +0200 |
---|---|---|
committer | Michael Hamann <michael@content-space.de> | 2013-07-31 18:03:31 +0200 |
commit | 07ff0babae240ba072a3bc8b83a989c4305c24cd (patch) | |
tree | f8548a00f31c47f11344d8e880893e812570f783 /inc/common.php | |
parent | cd997f938b450010efa93aa8a65ecbed9a68a32e (diff) | |
download | rpg-07ff0babae240ba072a3bc8b83a989c4305c24cd.tar.gz rpg-07ff0babae240ba072a3bc8b83a989c4305c24cd.tar.bz2 |
Fix the useheading cache invalidation for hidden pages, add tests
This adds a new parameter to ft_backlinks() to ignore permissions which
is needed for invalidating the cache of linking pages with useheading
enabled. This also adds various test cases for ft_backlinks().
Diffstat (limited to 'inc/common.php')
-rw-r--r-- | inc/common.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php index 1b4d9e8e4..bff6e80de 100644 --- a/inc/common.php +++ b/inc/common.php @@ -1130,7 +1130,7 @@ function saveWikiText($id, $text, $summary, $minor = false) { // if useheading is enabled, purge the cache of all linking pages if(useHeading('content')) { - $pages = ft_backlinks($id); + $pages = ft_backlinks($id, true); foreach($pages as $page) { $cache = new cache_renderer($page, wikiFN($page), 'xhtml'); $cache->removeCache(); |