Hey guys,
I'm looking to go with the 2-CPU license for LSWS, I'm on the 15 day trial now but I can't seem to get the Caching to work properly. Well, actually the purging / Cache Expire Time.
First off I have a cPanel Server running Centos 6.4 without about 15 sites hosted off it.
Software versions:
PHP 5.4.17
LSWS 4.2.4
LSWS Cache Setting: (Globally disabled)
So I plan on enabling cache by means of the .htaccess file only.
HTACCESS file contents:
I have successfully gotten cache enabled for one of my Wordpress sites but the Cache Expire Time / purging doesn't seem to happen in the amount of seconds I set it to, which is 120 seconds.
Here is what I get from doing the Curl test:
So it looks like it is caching fine but I'm not sure why the cache-control has no-cache. Besides that I have done the "test.php" test which has the time and date, to keep refreshing to watch it update in the proper amount of time but that cache page never seems to update.
Is it not taking into account the 120 seconds for this?
Any help would be great, as I would like to get this working properly.
Thanks guys!
Regards,
I'm looking to go with the 2-CPU license for LSWS, I'm on the 15 day trial now but I can't seem to get the Caching to work properly. Well, actually the purging / Cache Expire Time.
First off I have a cPanel Server running Centos 6.4 without about 15 sites hosted off it.
Software versions:
PHP 5.4.17
LSWS 4.2.4
LSWS Cache Setting: (Globally disabled)
Code:
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
HTACCESS file contents:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
CacheEnable
RewriteCond %{ORG_REQ_URI} !^/wp-admin/
RewriteCond %{ORG_REQ_URI} !^/wp-admin$
RewriteRule ^index\.php$ - [L,E=Cache-Control:max-age=120]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Here is what I get from doing the Curl test:
Code:
user@host [/]# curl -I http://www.stewartfamilypei.com/ HTTP/1.1 200 OK
Date: Wed, 23 Oct 2013 13:38:37 GMT
Server: LiteSpeed
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
Transfer-Encoding: chunked
[B]X-LiteSpeed-Cache: hit[/B]
X-Pingback: http://www.stewartfamilypei.com/xmlrpc.php
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: [B]no-cache[/B], must-revalidate, max-age=0 (no-cache??)
Pragma: no-cache
Content-Type: text/html; charset=UTF-8
Is it not taking into account the 120 seconds for this?
Any help would be great, as I would like to get this working properly.
Thanks guys!
Regards,