Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
little pb with delete compiled templates
  • Posted: 21.07.2006, 00:08
     
    chaKal
    rank:
    Freshman Freshman
    registered:
     July 2002
    Status:
    offline
    last visit:
    09.01.07
    Posts:
    37
    Hi,

    There is a little bug with delete compiled templates.

    If pnRender cache is activated and there is a nocache tag in some templates (in my case it was in Pagesetter pub blocks), click on delete "compiled templates" cause a PHP crash:

    Code

    Fatal error: Call to undefined function: _smarty_tplfunc_d32e2d715020d9b9b19ee3e8a9700a37_0()


    If we delete compiled templates, there is no more inc files (in pnRender_compiled folder) but cached files (in pnRender_cache folder) needs these inc files to render nocache parts.


    So "delete compiled templates" action needs a "delete cached pages" action if pnRender caching enabled.
    But I think it is a better solution to "delete cached pages" even if pnRender caching disabled.


    So in pnRender_admin_clear_compiled() function in modules/pnRender/pnadmin.php, I added:

    Code

    $pnRender->clear_all_cache();


    just before:

    Code

    $pnRender->clear_compiled_tpl();



    chaK!



    edited by: chaKal, Jul 20, 2006 - 07:09 AM

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula