From ed6c3110af1f0c8b224d6806df52e0adfdaba023 Mon Sep 17 00:00:00 2001 From: Igor Date: Mon, 8 Nov 2010 14:53:18 +0300 Subject: Added option to purge cache. E. g. after editing the page with the main list of papers, all personal pages should be updated --- syntax.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'syntax.php') diff --git a/syntax.php b/syntax.php index 11e36e3..b608ab1 100644 --- a/syntax.php +++ b/syntax.php @@ -135,6 +135,9 @@ class syntax_plugin_papers extends DokuWiki_Syntax_Plugin case DOKU_LEXER_UNMATCHED: $renderer->doc .= $this->format_bibtex($bibtex, $options); + // Purge the cache to update depending pages + if ($this->getConf('purge-cache') || $tag === 'bibtex') + touch(DOKU_CONF . '/local.php'); break; case DOKU_LEXER_EXIT: -- cgit v1.2.3