Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
litespeed_wiki:cache:no-plugin-typo3 [2017/04/25 20:11] Johathan Kagan created |
litespeed_wiki:cache:no-plugin-typo3 [2017/04/25 20:45] Michael Alegre [Verify Cache Setup] |
||
---|---|---|---|
Line 12: | Line 12: | ||
Rewrite rules should be added to your .htaccess file, located in the document root of your website. Add the following to the top of the .htaccess file: | Rewrite rules should be added to your .htaccess file, located in the document root of your website. Add the following to the top of the .htaccess file: | ||
- | <pre> | + | <code> |
########## Begin - Litespeed cache | ########## Begin - Litespeed cache | ||
<IfModule LiteSpeed> | <IfModule LiteSpeed> | ||
Line 23: | Line 23: | ||
</IfModule> | </IfModule> | ||
########## End - Litespeed cache | ########## End - Litespeed cache | ||
- | </pre> | + | </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 **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. |