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:webadc [2017/06/30 15:44] Eric Leu [Testing] |
litespeed_wiki:cache:webadc [2020/11/18 15:36] (current) Lisa Clarke Redirect to new Documentation Site |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== LSCache + LiteSpeed WebADC ====== | + | ~~REDIRECT>https://docs.litespeedtech.com/products/lsadc/cache/~~ |
- | + | ||
- | Structure example:\\ | + | |
- | LiteSpeed WebADC (With Cache) > Back end web server > WordPress Application | + | |
- | + | ||
- | ===== Enable cache on Web ADC ===== | + | |
- | * Navigate to **LSLB Web Admin Console→Server→Cache** | + | |
- | - Set **Storage Path** ''/home/lscache/'' | + | |
- | {{:litespeed_wiki:cache:adc-server.png?|}} | + | |
- | * Navigate to **LSLB Web Admin Console→Virtual Hosts→Cache** | + | |
- | - Set **Storage Path** ''/home/Litespeed443/lscache'' | + | |
- | - Set **Check Public Cache** ''Yes'' | + | |
- | {{:litespeed_wiki:cache:adc-vh.png?|}} | + | |
- | * Install and activate plugin for WordPress by following this [[https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:installation#installation|Installation article]] | + | |
- | + | ||
- | ===== Testing ===== | + | |
- | + | ||
- | You can check if a page is being cached from WebADC by: | + | |
- | - Navigating to your site from a non-logged-in browser and using your browser's developer tools to check the response header. | + | |
- | - Enter ''<nowiki>http://[Back_end_web_server_IP]/wordpress</nowiki>'' as URL, check there is no cache from response header. | + | |
- | - Enter ''<nowiki>http://[Web_ADC_IP]/wordpress</nowiki>'' as URL, if you reload page a second time and see “X-LiteSpeed-Cache: hit” in the response header for the page file, then the page is being served by the cache. | + | |
- | - Modify posts from WordPress Application, then Ctrl+F5 to refresh ''<nowiki>http://[Web_ADC_IP]/wordpress</nowiki>'', you should see the updated posts. | + | |
- | + | ||
- | ===== Turning On the Web ADC Debug Log ===== | + | |
- | Follow steps to enable Web ADC debug log:\\ | + | |
- | * Navigate to **LSLB Web Admin Console→Server→Log** | + | |
- | - Set **Log Level** ''DEBUG'' | + | |
- | - Set **Debug Level** ''NONE'' | + | |
- | {{:litespeed_wiki:cache:adc-debug.png?|}} | + | |
- | + | ||
- | + | ||
- | + |