Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
litespeed_wiki:cache:no-plugin-typo3 [2017/04/25 20:23] Johathan Kagan [Rewrite rules] |
litespeed_wiki:cache:no-plugin-typo3 [2017/04/25 20:59] (current) Michael Alegre [I set rewrite rules according to the wiki, but why my admin pages being cached?] Changed title and edited content to read better. |
||
---|---|---|---|
Line 25: | Line 25: | ||
</code> | </code> | ||
- | Be sure to replace **domain.com** with the IP or Domain of the TYPO3 site. This line is not 100% needed, but does provide a safety net for caching multiple things on the same vhost. | + | Be sure to replace ''domain.com'' with the IP or Domain of the TYPO3 site. This line is not 100% needed, but does provide a safety net when caching multiple applications on the same vhost. |
- | If the admin folder has changed from **typo3** to something else, be sure to change that to whatever it was changed to. | + | If the admin folder has changed from **typo3** to something else, be sure to change **typo3** to whatever it was changed to. |
===== Verify Cache Setup ===== | ===== Verify Cache Setup ===== | ||
- | Open your browsers inspector, by right-clicking and selecting "Inspector" or pressing the F12 key, and refresh the page. Under the "Network" tab look for the HTML page you just loaded and clikc on it to view it's response header. | + | Open your browsers inspector, by right-clicking and selecting "Inspector" or pressing the F12 key, and refresh the page. Under the "Network" tab look for the HTML page you just loaded and click on it to view it's response header. |
In the response header you should see ''X-LiteSpeed-Cache: hit'' to indicate that the page was served from cache successfully. If you see ''X-LiteSpeed-Cache: miss'', reload the page and check again. | In the response header you should see ''X-LiteSpeed-Cache: hit'' to indicate that the page was served from cache successfully. If you see ''X-LiteSpeed-Cache: miss'', reload the page and check again. | ||
Line 51: | Line 51: | ||
===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
- | ==== I set rewrite rules according to the wiki, but why my admin pages being cached? ==== | + | ==== Admin Pages Still Being Cached After Setting Rewrite Rules ==== |
- | The lscache could be incorrectly enabled on server level globally. You can either correct the wrong lscache setting "Enable Public Cache" to "not set" or "no" according to [[litespeed_wiki:cache:common_installation#web_server_configuration|this recommendations]], or just disable global setting for a particular virtual host in .htaccess first before the rewrite rules. | + | It is likely that LSCache is incorrectly enabled globally at the server level. This can be corrected either by changing the LSCache setting **Enable Public Cache** to "not set" or "no" as recommended **[[litespeed_wiki:cache:common_installation#web_server_configuration|here]]**, or by disabling the setting for a particular virtual host by adding ''CacheDisable public /'' to their .htaccess file before any rewrite rules like so: |
########## Begin - Litespeed cache | ########## Begin - Litespeed cache | ||
Line 64: | Line 64: | ||
########## End - Litespeed cache | ########## End - Litespeed cache | ||
- | Note: The "CacheDisable public /" directive is used to help protect against globally enabled caching. The Rewrite rules will enable cache. | + | Note: The "CacheDisable public /" directive is used to help protect against globally enabled caching. The Rewrite rules will enable caching as needed. |