1
andrey3761
How to clear a module cache?

I wish to clear a module cache. Has for this purpose written function:

le="color: #000000"><?php 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?

2
DonCurioso
Re: How to clear a module cache?

Hi,

you can use xDelCache Simply, fast, secure, easy & free. It´s a hack working under XOOPS 2.3.3

Download from HispaXoops

Hope it helps

3
Mamba
Re: How to clear a module cache?
  • 2009/9/16 17:40

  • Mamba

  • Moderator

  • Posts: 11542

  • Since: 2004/4/23


See this FAQ about Cache, and the links at the bottom

4
andrey3761
Re: How to clear a module cache?

DonCurioso, Mamba.
I do not wish to clean a cache of all site. I wish to clean a cache of one module.

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!