PEAK XOOPS - Re: FastestCacheHack -> ignore caching for admins in englishin japanese

Re: FastestCacheHack -> ignore caching for admins

  • As this forum is only for commentation, you cannot open a new topic
  • Guests cannot post into this forum
Target News
Subject 最速キャッシュハックの実験版放流
Summary 「最速キャッシュハック」を実験版として公開します。http://www.peak.ne.jp/xoops/md/mydownloads/singlefile.php?lid=67&cid=2XOOPS初(?)のページキャッシュシステムで、XOOPSの動作原理に基づいたキャッシュ制御にその特徴があります。もっとも特徴的なのは、redirect_...
Previous post - Next post | Parent - Children.1 .2 .3 | Posted on 2007/5/9 21:19 | Last modified
jayjay  一等兵   Posts: 11
Hi Gijoe!

I've implemented your Fastest Cache Hack and it works perfectly! Very satisfied with your work

I'm wondering if one could exclude certain user groups from caching. Let's say the webmaster logs in and he belongs to "'XOOPS_GROUP_ADMIN', '1'". He would like to see the website without caching, so that he can quickly check his changes and correct them if he made a mistake.

The other users will still see the standard "'FASTESTCACHE_EXPIRE_USER' , 300" and guests will still see the "'FASTESTCACHE_EXPIRE_GUEST' , 3600" cache.

Is that possible? How would I go about implementing this?

Edit:
Tried adding this on line 45:
else if( ! empty( $_POST ) || $xoopsUserIsAdmin == true || @$xoopsOption['pagetype'] == 'user' || preg_match( '?(/system/|/admin/|register\.php)?' , $_SERVER['REQUEST_URI'] ) ) {
	define( 'NOCACHE' , 1 ) ;
}

Didn't work, but maybe coming close?
Votes:1 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2007/5/11 17:49
GIJOE  先任軍曹   Posts: 4110
Quote:

jayjay wrotes:
Didn't work, but maybe coming close?
No

FCH cannot judge between admin/user/guest because it returns the result without MySQL connection.

Thus, this hack is named "fastest".
Votes:1 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2007/5/12 23:14
jayjay  一等兵   Posts: 11
Hi GIJOE!

Thanks for the very clear answer

I thought there might have been a possibility because fastest cache makes a difference between guests and users.

Will caching fot users be ignored if I set FASTESTCACHE_EXPIRE_USER to 0? Or is this something you wouldn't recommend?
Votes:1 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2007/5/13 4:24
GIJOE  先任軍曹   Posts: 4110
Quote:

jayjay wrotes:
Will caching fot users be ignored if I set FASTESTCACHE_EXPIRE_USER to 0? Or is this something you wouldn't recommend?

Perhaps, it is good idea for a site has small user's accesses and large guest's accesses.
Votes:1 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2007/9/7 4:34
marco  上等兵   Posts: 27
how about this feature in XC/XCL? what has been improved in XC/XCL to improve page speed display and scalability?
thx
marco
Votes:1 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2007/9/7 7:01 | Last modified
gigamaster  三等軍曹 From: Geneva, Switzerland  Posts: 94
Hi,

Every Legacy module comes with "help" files.
Did you check "help" from Cache module?


Quote:
Summary

This module adds the standard cache policy to Legacy System. The policy orders Legacy System to make cache files for every groups except the webmaster group.

Salutations,

Votes:1 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2007/9/7 15:54
marco  上等兵   Posts: 27
well, i've noticed that,but my question was on the "fastest" concept.

Quote:
Just a case in this site:

Save 30% of CPU
Use another 30~50Mbyte HDD
have some work around been made on XC/XCL to speed up things upon 2.0x?
Votes:1 Average:10.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!