PEAK XOOPS - Re: Fastest Cache Hack (Experimental version) in englishin japanese

Re: Fastest Cache Hack (Experimental version)

  • As this forum is only for commentation, you cannot open a new topic
  • Guests cannot post into this forum
Target Downloads
Subject Fastest Cache Hack (Experimental version)
Summary == 最速キャッシュハック (FCH) ==●特長ページまるごと単位でキャッシュする高速化ハックです。ただし、使い方はそれなりに難しい上に、セッションについての危険性を理解していないと思わぬセキュリティホールの原因になりますので、決して初心者向きではありません...
Previous post - Next post | Parent - No child | Posted on 2006/9/4 5:31 | Last modified
tl  三等軍曹   Posts: 84
I have a weblink module which consumes MySQL queries like crazy (160!)
I tried to hack fastcache.php, will the following work?

top of the file
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 ) ;
} 

thanks!
Votes:13 Average:9.23

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!