| Topic: | little pb with delete compiled templates |
|---|---|
|
chaKal
Freshman
Posts: 37 Posted: |
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: CodeFatal 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 |