Target | Downloads |
Subject | Fastest Cache Hack (Experimental version) |
Summary | == THE FASTEST CACHE HACK for XOOPS ==SUMMARY:A hack for Page Caching of XOOPS.This hack is not for novices but for experts. USAGE:(1) copy fastestcache.php into your XOOPS_ROOT_PATH/include/(2) make a new folder out of DocumentRoot eg) /home/yourhome... |
global $xoopsModule ;
if( isset( $xoopsModule ) && is_object( $xoopsModule ) ) {
$dirname = $xoopsModule->getVar( 'dirname' ) ;
}
if ($dirname == weblinks ) {
define( 'FASTESTCACHE_EXPIRE_GUEST' , 3600 ) ;
} else {
define( 'FASTESTCACHE_EXPIRE_GUEST' , 300 ) ;
}