Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
litespeed_wiki:cache:common:cache-tag-prefix-conflicts [2017/06/01 14:42] Lisa Clarke Added background and further details to better explain the issue |
litespeed_wiki:cache:common:cache-tag-prefix-conflicts [2017/06/01 14:44] Lisa Clarke |
||
---|---|---|---|
Line 3: | Line 3: | ||
**Note**: This is not relevant for a single multi-site WordPress install. | **Note**: This is not relevant for a single multi-site WordPress install. | ||
===== The Problem ===== | ===== The Problem ===== | ||
- | Of particular concern is the cache tag, which is the same across all instances of a particular app. In a 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. | + | 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. |
- | **Example**: One WordPress installation at ''<nowiki>www.example.com/</nowiki>'' and and another WordPress installation at ''<nowiki>www.example.com/store/</nowiki>''. | + | **Example**: One WordPress installation at ''<nowiki>www.example.com/</nowiki>'' and another WordPress installation at ''<nowiki>www.example.com/store/</nowiki>''. |
- | In a situation where you might want to purge your entire Example Blog from cache, and you press that button, 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. | + | 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 Solution ===== | ===== The Solution ===== | ||
- | To differentiate one instance of the app from another, you can give each installation its own unique **Cache Tag Prefix**. | + | 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 WordPress ==== | ||
In the WP-Admin panel, navigate to **LiteSpeed Cache -> Settings -> Advanced**, as depicted below: | In the WP-Admin panel, navigate to **LiteSpeed Cache -> Settings -> Advanced**, as depicted below: |