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?
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".
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?
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.
how about this feature in XC/XCL? what has been improved in XC/XCL to improve page speed display and scalability?
thx
marco
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,
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?