Cache Breaking for CE Cache

CE Cache from Causing Effect is an excellent and popular caching addon for ExpressionEngine.

Note: Always avoid caching any user-specific data when using CE Cache

Escaping the Cache

CE Cache keeps it's cache non-member specific, so if you're using it together with Shortlist you'll need to make sure all member-specific tags are wrapped with the cache escape tags ce_cache provides. Like so :

{exp:ce_cache:escape}
	..
	{exp:shortlist:view}
		.. Your List ..
	{/exp:shortlist:view}
{/exp:ce_cache:escape}

Breaking the Cache

Also if you find a need to use shortlist outside of these areas, there's an internal cache breaking routine to clear the cached parts within ce_cache, just incase. To make use of that you'll need to just add a 'tag' of 'shortlist' to the areas you want cache broken when a shortlist operation is performed. Like so :

{exp:ce_cache:it tags='shortlist'}
	..
	{exp:shortlist:view}
		.. Your List ..
	{/exp:shortlist:view}
{/exp:ce_cache:it}

The 'shortlist' tag can be added to any ce_cache tag. When a user interacts with shortlist and makes a change to their lists or items, it'll automatically trigger a cache refresh so the visible data is always up-to-date.

Having problems with Shortlist + CE Cache? Contact Support and we'll help you out.