Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
litespeed_wiki:cache:common:cache-tag-prefix-conflicts [2017/05/23 14:31] Kevin Fwu created |
litespeed_wiki:cache:common:cache-tag-prefix-conflicts [2017/06/01 14:46] (current) Lisa Clarke [Managing Cache Tag Prefix Conflicts] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Cache Tag Prefix Conflicts ====== | + | ====== Managing Cache Tag Conflicts ====== |
+ | Cache Tag Prefix conflicts can pop up when you have multiple instances of the same web application with [[litespeed_wiki:cache#litespeed_cache_plugins_by_application|LSCache plugins]] enabled and using the same cache root (as in a WordPress site at ''/public_html/'' and another one at ''/public_html/wp2/''). | ||
+ | **Note**: This is not relevant for a single multi-site WordPress install. | ||
+ | ===== The Problem ===== | ||
+ | The cache tag is the same across all instances of a particular app. In each single-site install of Wordpress, for example, it's always ''b1_''. The cache tag is used to group together pages from the app. As such, it is in control of which pages are purged from cache. | ||
- | ===== Do I need to do anything? ===== | + | **Example**: One WordPress installation at ''<nowiki>www.example.com/</nowiki>'' and another WordPress installation at ''<nowiki>www.example.com/store/</nowiki>''. |
- | This wiki entry is intended for people who have multiple of the same [[litespeed_wiki:cache#litespeed_cache_plugins_by_application|LSCache plugins]] in the same document root (e.g. a WordPress in /public_html/shop/ and another WordPress in /public_html/). For these situations, some extra steps may be required to correctly purge the web applications. If this does not describe the situation, then there is likely no extra steps involved. | + | |
- | ===== In WordPress ===== | + | In a situation where you might want to purge your entire Example Blog from cache, LSCache interprets the command as “purge everything with the cache tag ''b1_''” and out goes your entire Example Blog cache //and your Example Store cache as well//, because it also has the ''b1_'' tag. |
- | The cache tag prefix can be modified in the WP-Admin panel. The relevant option is in LiteSpeed Cache -> Settings -> Advanced, as depicted below: | + | |
+ | ===== The Solution ===== | ||
+ | To differentiate pages of one instance of the app from the pages of another within the cache, you can give each installation its own unique **Cache Tag Prefix**. | ||
+ | ==== In WordPress ==== | ||
+ | In the WP-Admin panel, navigate to **LiteSpeed Cache -> Settings -> Advanced**, as depicted below: | ||
{{ :litespeed_wiki:cache:wordpress_cache_tag.png?direct&700 |}} | {{ :litespeed_wiki:cache:wordpress_cache_tag.png?direct&700 |}} | ||
- | ===== In XenForo ===== | + | ==== In XenForo ==== |
- | The cache tag prefix can be modified in the Xenforo Admin. The setting in XenForo is in the admin panel under Home -> LiteSpeed Cache -> Settings, as depicted below: | + | In Xenforo Admin, navigate to **Home -> LiteSpeed Cache -> Settings**, as depicted below: |
{{ :litespeed_wiki:cache:xenforo_cache_tag.png?direct&700 |}} | {{ :litespeed_wiki:cache:xenforo_cache_tag.png?direct&700 |}} | ||