diff options
| author | Igor <pashev.igor@gmail.com> | 2010-11-08 14:53:18 +0300 |
|---|---|---|
| committer | Igor <pashev.igor@gmail.com> | 2010-11-08 14:53:18 +0300 |
| commit | ed6c3110af1f0c8b224d6806df52e0adfdaba023 (patch) | |
| tree | 10035ac52dd8681a29195d2c203e5c33a5a60c4b /syntax.php | |
| parent | fbafb72df08821dc281c5f04225cd6da5452d30f (diff) | |
| download | dokuwiki-plugin-papers-ed6c3110af1f0c8b224d6806df52e0adfdaba023.tar.gz | |
Added option to purge cache. E. g. after editing the page with the main list of papers, all personal pages should be updated
Diffstat (limited to 'syntax.php')
| -rw-r--r-- | syntax.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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: |
