1
I wish to clear a module cache. Has for this purpose written function:
function mymodule_updateCache(){
global $xoopsModule;
include_once XOOPS_ROOT_PATH.'/class/template.php';
$xoopsTpl = new XoopsTpl();
$folder = $xoopsModule->getVar('dirname');
$xoopsTpl->clearCache($folder);
}
When I call this function there are errors:
Notice: Undefined index: exp_time in file /class/smarty/internals/core.rm_auto.php line 60
Notice: Undefined index: exp_time in file /class/smarty/internals/core.rm_auto.php line 60
*******
Notice: Undefined index: exp_time in file /class/smarty/internals/core.rm_auto.php line 60
How correctly to clear a cache?