1
andrey3761
How to clear a module cache?

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?

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: 11366

  • 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

Who's Online

294 user(s) are online (172 user(s) are browsing Support Forums)


Members: 0


Guests: 294


more...

Donat-O-Meter

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

Latest GitHub Commits