LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > LiteSpeed Cache > Configuring and testing litespeed cache Part 1

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-20-2011, 06:00 AM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
Question Configuring and testing litespeed cache Part 1

As per thread at http://www.litespeedtech.com/support...ead.php?t=4198 and at http://www.litespeedtech.com/support...ead.php?t=4401, testing out litespeed cache first with simple test.php and testnocache.php files each with the following code as per NiteWave's instructions

PHP Code:
<?php
header
('CurrentTime: '.gmdate('D, d M Y H:i:s'time()).' GMT',true);

echo 
"time()=" time() . "<br>";
echo 
"date()=" date(DATE_RFC822) ."<br>";
?>
My test config has main virtual host account on 192.168.56.101 loading apache conf at /etc/httpd/conf/httpd.conf

/etc/httpd/conf/httpd.conf contains

Code:
CacheRoot /lscache/ 
CacheEnable disk /
or is it meant to be

Code:
<IfModule mod_disk_cache.c>
CacheRoot /lscache/ 
CacheEnable disk / 
</IfModule>
anyway tried both and same results

.htaccess in /var/www/html contains

Code:
RewriteRule /test.php - [E=Cache-Control:max-age=45]
with cache policy set at
Code:
Enable Cache:No
Cache Request with Query String:No
Cache Request with Cookie:No
Cache Response with Cookie:No
Ignore Request Cache-Control:No
Ignore Response Cache-Control:No
both test.php and testnocache.php don't get cached

with cache policy set to

Code:
Enable Cache:No
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
both test.php and testnocache.php get cached even if i only specified test.php to be cached in htaccess ?

Last edited by eva2000; 01-20-2011 at 08:01 AM..
Reply With Quote
 

Tags
boost, cache, mod_cache, mod_disk_cache, varnish

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:35 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.