Fork me on GitHub

stupid question  Bottom

  • hello

    when you clear a page in cache in pnRender, does it clear the associated theme Xanthia cache ?

    Code

    $pnRender = pnRender::getInstance('<module>');
        $pnRender->clear_cache('<module>_block_<bkey>.htm');

    thanks



    edited by: mumuri, datetimebrief
  • My instinct would say "no", but I have never tested it....

    - Igor
  • No, it does not.
  • damned
  • Theme cache is not per page, you can only clear out the whole cache it once. That's why it is also not possible to do this directly from a module, since you would then have to clear out the whole cache.

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • i don't understand the "not per page", xanthia is caching one pnRenderInstance + ThemeBlocks + others stuff, so it should be possible to have an identifier to look for in xanthia when we do a clearCache
  • True, but there is no function for it AFAIK. It is just a clear all or nothing as userapi function of Theme.

    --
    campertoday.nl, Module development, Dutch Zikula Community

This list is based on users active over the last 60 minutes.