|
|

06-21-2011, 07:00 PM
|
|
Senior Member
|
|
Join Date: Feb 2010
Posts: 121
|
|
Can't turn off caching once it's enabled.
I made the mistake of turning on caching on one of our shared servers.
We started receiving massive complaints due to old pages (yes, that's the point) so we turned off all values in the caching page.
However, things are still being cached. We restarted Litespeed, still cached.... I deleted the cache folder, restarted Litespeed, it stopped writing to the cache folder but it still caches at times...
Has anyone else had this problem? This is very odd.
|

06-22-2011, 06:58 AM
|
|
Senior Member
|
|
Join Date: Jun 2010
Posts: 100
|
|
Quote:
Originally Posted by optize
I made the mistake of turning on caching on one of our shared servers.
We started receiving massive complaints due to old pages (yes, that's the point) so we turned off all values in the caching page.
However, things are still being cached. We restarted Litespeed, still cached.... I deleted the cache folder, restarted Litespeed, it stopped writing to the cache folder but it still caches at times...
Has anyone else had this problem? This is very odd.
|
Have you tried to manually check the lsws configuration file? If nothing in there then force reinstall 4.1.1 
|

06-22-2011, 08:19 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
It is likely cached by browser, just clear browser cache and try again.
|

06-26-2011, 08:55 AM
|
|
Senior Member
|
|
Join Date: Feb 2010
Posts: 121
|
|
Quote:
Originally Posted by mistwang
It is likely cached by browser, just clear browser cache and try again.
|
No, it's not.
I re-installed Litespeed, still not working.
Basically what's happening is all new domains that get added to the server cache the default cPanel page.
I have to physically restart Litespeed for it to work for every new domain that gets added.
Can someone look into this?
|

06-27-2011, 08:15 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
Please check response header with firebug see if the default cPanel page has "LiteSpeed-Cache:hit", if not, it has nothing to do with page cache, just the new configuration has not been applied.
Please note that cPanel delay applying new configuration, so new domain wont be take effect immediately, it will be become available in a little while. It is done intentionally by cPanel, not a LiteSpeed issue, same when Apache is used.
|

06-27-2011, 08:38 AM
|
|
Senior Member
|
|
Join Date: Feb 2010
Posts: 121
|
|
Quote:
Originally Posted by mistwang
Please check response header with firebug see if the default cPanel page has "LiteSpeed-Cache:hit", if not, it has nothing to do with page cache, just the new configuration has not been applied.
Please note that cPanel delay applying new configuration, so new domain wont be take effect immediately, it will be become available in a little while. It is done intentionally by cPanel, not a LiteSpeed issue, same when Apache is used.
|
In firebug:
Under Images:
Date Mon, 27 Jun 2011 15:33:15 GMT
Server LiteSpeed
Accept-Ranges bytes
Connection Keep-Alive
Keep-Alive timeout=5, max=100
Etag "195-4519f862-0"
Last-Modified Wed, 27 Sep 2006 04:04:50 GMT
Content-Type image/jpeg
Content-Length 405
Cache-Control max-age=604800
Expires Mon, 04 Jul 2011 15:33:15 GMT
Under HTML -> Cache
Last Modified Mon Jun 27 2011 08:33:15 GMT-0700 (MST)
Last Fetched Mon Jun 27 2011 08:33:15 GMT-0700 (MST)
Expires Wed Dec 31 1969 17:00:00 GMT-0700 (MST)
Data Size 1034
Fetch Count 2
Device memory
I don't see anything related to Litespeed-Cache.
Another thing I'm thinking is that it's not restarting apache after it adds the virtualhost.
If I go to http://newdomain.com/AAA
error_log;
2011-06-27 08:37:00.182 [INFO] [x.x.x.x:62643-0#APVH_x.x.x.x_cp24.xx.com] File not found [/usr/local/apache/htdocs/AAA]
So it's using the default VirtualHost entry, which would explain why a litespeed restart would fix it. Where should I be looking to see if it reloaded the config after the VirtualHost entry?
I have 15+ Litespeed servers, this is the only one not behaving, they are all on the same release, but this is the only one I enabled Caching on.
|

06-27-2011, 10:32 AM
|
|
LiteSpeed Staff
|
|
Join Date: Oct 2010
Posts: 2,337
|
|
|
it looks like your server does not restart automatically to pick up new changes. make sure 'Reload on changes' is set to either 'Yes' or 'Use Apache binary wrapper'.
Last edited by webizen; 06-27-2011 at 07:06 PM..
|

06-27-2011, 02:31 PM
|
|
Senior Member
|
|
Join Date: Feb 2010
Posts: 121
|
|
Quote:
Originally Posted by webizen
it looks like your server does not restart automatically to pick up new changes. make sure 'Reload on changes' is set to either 'Yes' or 'Use Apache binary wrapper'. Apache gets turned off (service httpd off)
|
It is:
Load Apache Configuration Yes
Auto Reload On Changes Use Apache binary wrapper
Apache Binary Path /usr/local/apache/bin/httpd
Apache Configuration File /usr/local/apache/conf/httpd.conf
This server has been in production more then a year and has worked fine. As soon as I upgraded to the latest version and enabled caching, things broke.
|

06-27-2011, 07:03 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
please check /usr/local/cpanel/logs/safeapacherestart_log and /usr/local/lsws/logs/ap_cmd_param.log after adding/removing a domain. safeapacherestart_log shows when cPanel restart Apache. usually, cpanel wait up-to 1 minutes to apply new changes.
You can try reverting back to 4.0.20 manually see if it can fix the problem.
|

06-28-2011, 10:39 AM
|
|
Senior Member
|
|
Join Date: Feb 2010
Posts: 121
|
|
Quote:
Originally Posted by mistwang
please check /usr/local/cpanel/logs/safeapacherestart_log and
after adding/removing a domain. safeapacherestart_log shows when cPanel restart Apache. usually, cpanel wait up-to 1 minutes to apply new changes.
You can try reverting back to 4.0.20 manually see if it can fix the problem.
|
Added an account at 10:39AM.
safeapacherestart_log:
[2011-06-28 04:12:31 -0700] info [safeapacherestart] Apache httpd is disabled, cannot be restarted
ap_cmd_param.log:
Tue Jun 28 10:39:07 MST 2011: -k graceful
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 02:43 AM.
|
|