Pages not updated sometimes and possible improvements

Issue #1 new
teatall created an issue

Nice work!

Bug

Target pages where the template is called sometimes don't update immediately after the template is modified.

Possible improvements:

  • Wrap the element of the template on the target pages so that custom css styles could be applied
  • Provide a link to the template page on target pages so that contributors could go and edit the template in case of need

Comments (3)

  1. Vitalie Ciubotaru repo owner

    Thank you very much for your report.

    I know about this bug. Unfortunately, fixing it requires fundamental changes in the plugin internals. I am planning to do it, but I can not promise to do it soon.

  2. Vitalie Ciubotaru repo owner

    The eadiest fix for this particular problem is to add one line "$renderer->nocache();" somewhere in the render() function in syntax/template.php. E.g.:

    public function render($mode, Doku_Renderer $renderer, $data) {               
      if($mode != 'xhtml') return false;
      if (!$data) return false;
      $renderer->doc .= $renderer->render_text($data, 'xhtml');
      $renderer->nocache(); //add this line
      return true;
    }
    

    Best regards, Vitalie Ciubotaru

  3. Log in to comment