diff options
-rw-r--r-- | conf/default.php | 1 | ||||
-rw-r--r-- | syntax.php | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/conf/default.php b/conf/default.php index 6ae34fc..897b755 100644 --- a/conf/default.php +++ b/conf/default.php @@ -11,4 +11,5 @@ $conf['filetypes'] = array('PDF', 'DjVu', 'PS', 'TIFF'); $conf['papers'] = 'публикации'; // Wiki page with bibtex data $conf['grants'] = 'гранты'; +$conf['purge-cache'] = true; @@ -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: |