Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
litespeed_wiki:cache:developer_guide:directives [2016/05/16 17:30] Rob Holda [CacheMaxExpire] |
litespeed_wiki:cache:developer_guide:directives [2017/03/01 19:20] Kevin Fwu [Apache configuration directives] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Apache configuration directives ====== | ====== Apache configuration directives ====== | ||
- | LiteSpeed’s Apache-style configuration directives must be nested in ''<IfModule LiteSpeed>'' and ''</IfModule>'' tags. For example: | + | LiteSpeed’s Apache-style configuration directives must be nested in ''<IfModule LiteSpeed>'' and ''</IfModule>'' tags. This is to prevent any possible incompatibility issues. For example: |
<code> | <code> | ||
<IfModule LiteSpeed> | <IfModule LiteSpeed> | ||
CacheEnable public / | CacheEnable public / | ||
- | CacheRoot c:/cacheroot | + | CacheRoot /dev/shm/cacheroot |
CacheMaxExpire 604800 | CacheMaxExpire 604800 | ||
</IfModule> | </IfModule> | ||
Line 38: | Line 38: | ||
The ''CacheRoot'' directive defines the name of the directory on the disk to contain cache files. \\ | The ''CacheRoot'' directive defines the name of the directory on the disk to contain cache files. \\ | ||
<code> | <code> | ||
- | CacheRoot c:/cacheroot | + | CacheRoot /dev/shm/cacheroot |
</code> | </code> | ||
Line 71: | Line 71: | ||
**syntax:** ''CacheLookup public on|off'' \\ \\ | **syntax:** ''CacheLookup public on|off'' \\ \\ | ||
The ''CacheLookup'' directive instructs LiteSpeed Web Server on whether or not to check public cache. Typically, on a web server level, you want to set this off with the following directive: \\ | The ''CacheLookup'' directive instructs LiteSpeed Web Server on whether or not to check public cache. Typically, on a web server level, you want to set this off with the following directive: \\ | ||
- | ''CacheLookup public off'' \\ \\ | + | <code> |
+ | CacheLookup public off | ||
+ | </code> | ||
And then turn it on at a per-site basis with the following directive: \\ | And then turn it on at a per-site basis with the following directive: \\ | ||
- | ''CacheLookup public on'' \\ \\ | + | <code> |
+ | CacheLookup public on | ||
+ | </code> |