Hello,
I need some help over here if you don't mind.
I'm having a hard time enabling LiteSpeed Caching, as I have purchased the 2-CPU license just to use this feature, if you can shed some light over here:
I have set the following rules on .htaccess
RewriteEngine on
# cache for 2 mins for php pages only
RewriteRule /(.*\.php)?$ - [L,E=Cache-Control:max-age=120]
And of course in LS control panel:
Enable Cache:No
Cache Request with Query String:Yes
Cache Request with Cookie:No
Cache Response with Cookie:No
Ignore Request Cache-Control:No
Ignore Response Cache-Control:No
Enable Private Cache: Yes*
Private Cache Expire Time (seconds): 120
I know that this has to do with:
3. For imported Apache vhost:
Cache can be turned on/off with "CacheEnable" , "CacheDisable" directives in Apache config file. Nothing needs to be done for the cache policy. It will assume the same default settings at LSWS Server level. Rewrite rules can be placed in httpd.conf or in-directory .htaccess file as shown in step 5 below.
Note: Apache mod_cache directives CacheIgnoreCacheControl, CacheMaxExpire also can be used in the Apache config file as well as .htaccess to fine tune cache policy.
but I don't understand exactly what we should do, I have recompiled Apache with Cache Module. What else?
Please note that I'm using an imported httpd.conf, as I was running cPanel + Apache and switched to LiteSpeed.
Thank you
I need some help over here if you don't mind.
I'm having a hard time enabling LiteSpeed Caching, as I have purchased the 2-CPU license just to use this feature, if you can shed some light over here:
I have set the following rules on .htaccess
RewriteEngine on
# cache for 2 mins for php pages only
RewriteRule /(.*\.php)?$ - [L,E=Cache-Control:max-age=120]
And of course in LS control panel:
Enable Cache:No
Cache Request with Query String:Yes
Cache Request with Cookie:No
Cache Response with Cookie:No
Ignore Request Cache-Control:No
Ignore Response Cache-Control:No
Enable Private Cache: Yes*
Private Cache Expire Time (seconds): 120
I know that this has to do with:
3. For imported Apache vhost:
Cache can be turned on/off with "CacheEnable" , "CacheDisable" directives in Apache config file. Nothing needs to be done for the cache policy. It will assume the same default settings at LSWS Server level. Rewrite rules can be placed in httpd.conf or in-directory .htaccess file as shown in step 5 below.
Note: Apache mod_cache directives CacheIgnoreCacheControl, CacheMaxExpire also can be used in the Apache config file as well as .htaccess to fine tune cache policy.
but I don't understand exactly what we should do, I have recompiled Apache with Cache Module. What else?
Please note that I'm using an imported httpd.conf, as I was running cPanel + Apache and switched to LiteSpeed.
Thank you