![]() |
LiteSpeed Cache + PhpFox
Hello,
Successful enable LiteSpeed Cache, but i'm having one problem with the phpfox website. After i'm added RewriteRule cache .htacesss RewriteRule (.*\.php)?$ - [L,E=Cache-Control:max-age=120] The server seems very fast and cache is working, but one problem is the session user changed to another user. Which mean i'm as administrator/admin change to another user. (Session ID changing) I'm don't know, why this happen? I'm disable cache by commented out # on .htaccess. It's back to normal,but no cache apply from LiteSpeed. Hope LiteSpeed Staff can look at my issue. Here my cache setting on LiteSpeed Storage Path /dev/shm/lsdiskcache Max Object Size Not Set Enable Cache No Cache Expire Time (seconds) Not Set Cache Request with Query String Yes Cache Request with Cookie Yes Cache Response with Cookie Yes Ignore Request Cache-Control Yes Ignore Response Cache-Control Yes Enable Private Cache No Private Cache Expire Time (seconds) 120 Note : I'm applying LiteSpeed with PHPFox. Thanks. |
You can only use private cache for login user, public cache for guest visitors.
Please read more about our wikis. |
Quote:
in some of softwares that based on cookies this options may cause some weired problems . so set it to no and take a shot ! Quote:
|
Quote:
but getting error : 404 Not Found The resource requested could not be found on this server! Can't open the website. Please help :) Thanks. |
to enable public cache for guest visitors, please refer to vBulletin cache setting:
http://blog.litespeedtech.com/2011/0...uilt-in-cache/ and / or http://www.litespeedtech.com/support...ache:vbulletin all other php scripts should have similar settings to enable public cache for guest visitors. |
Hello,
Seems i'm successful apply cache, I'm put this on .htaccess RewriteEngine On ## cache should be available for HEAD or GET requests RewriteCond %{REQUEST_METHOD} ^HEAD|GET$ ## select which pages to cache RewriteCond %{HTTP_COOKIE} page_contain_cachetoken=yes # with other condition RewriteCond %{QUERY_STRING} !s=[a-fA-F0-9]{32} # excluding certain URLs RewriteCond %{REQUEST_URI} !/(login|register|usercp|private|profile|cron|image) \.php$ # cache for 2 mins for php pages only RewriteRule /(.*\.php)?$ – [L,E=Cache-Control:max-age=120] and the website running, without any error dumped on error_log. However this is public cache right ? I have question how to check whether this is already cached by LiteSpeed Cache or I'm also using CloudFlare . I'm need guide how to make private cache also. #Update1 VH Name Req in Processing Req/Sec Total Req Total Cache Hits Cache Hits/Sec Output Bandwidth ExtApp Processes EAProc In Use EAProc Idle EAProc WaitQ EAProc Req/Sec APVH_xxx.net 110 118.4 31,136 0 0.0 0 2 10 0 100 109 Total Cache Hits : 0 <-- still not working. Thanks. |
Quote:
http://blog.litespeedtech.com/2011/0...uilt-in-cache/ Quote:
Quote:
|
Hello,
Unfortunately, i can't see any response header response header “X-LiteSpeed-Cache hit” I'm using FireBug to check the header. |
[QUOTE=LowKey;41549]...
# cache for 2 mins for php pages only RewriteRule /(.*\.php)?$ |
Quote:
RewriteRule (.*\.php)?$ – [L,E=Cache-Control:max-age=120] # leading "/" should be removed in .htaccess |
| All times are GMT -7. The time now is 09:21 AM. |