We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

I wrote a little thing about Tag Caching... hope its' correct and helpful :slightly*smiling*face: ht

Development and Programming

User UWGLgOtE's avatar
User UWGLgOtE
3 posts
about 3 months ago
User UWGLgOtE's avatar User UWGLgOtE

I wrote a little thing about Tag Caching… hope its’ correct and helpful :slightlysmilingface:

https://orionesque.com/blog/article/expressionengine-tag-caching

       
Tom Jaeger's avatar
Tom Jaeger
453 posts
about 3 months ago
Tom Jaeger's avatar Tom Jaeger

Love it! Also.. not sure I’ve mentioned it yet.. but love to new site.

       
User UWGLgOtE's avatar
User UWGLgOtE
3 posts
about 3 months ago
User UWGLgOtE's avatar User UWGLgOtE

Cheers @tomjaeger

       
Hop Studios's avatar
Hop Studios
481 posts
about 3 months ago
Hop Studios's avatar Hop Studios

Great post.

For your use case I’d also use cache_prefix="global" because you want to grant permission site wide.

       
User BULfYYMv's avatar
User BULfYYMv
11 posts
about 3 months ago
User BULfYYMv's avatar User BULfYYMv

The cache<em>prefix is something I haven’t explored yet. When you use a specific cache</em>prefix what are the avenues for cache invalidation?

       
User BULfYYMv's avatar
User BULfYYMv
11 posts
about 3 months ago
User BULfYYMv's avatar User BULfYYMv

I use tag cache heavily with a refresh value of 1440.

       
Hop Studios's avatar
Hop Studios
481 posts
about 3 months ago
Hop Studios's avatar Hop Studios

There aren’t any cache clearing controls. EE clears the tag cache liberally and frequently as you update content, and clears the whole cache.

You could build something that erases certain cache directories for certain reasons.

       
Hop Studios's avatar
Hop Studios
481 posts
about 3 months ago
Hop Studios's avatar Hop Studios

Sorry, I should mean — there aren’t any tag-based, partial-cache-clearing controls. There is a page in the CP that lets you clear all tags. Or you can update a template, entry, channel, field, category, etc. etc. etc.

       
User BULfYYMv's avatar
User BULfYYMv
11 posts
about 3 months ago
User BULfYYMv's avatar User BULfYYMv

I guess I don’t understand the advantage of using a cache_prefix if there’s no way to granularly invalidate cache.

       
User BULfYYMv's avatar
User BULfYYMv
11 posts
about 3 months ago
User BULfYYMv's avatar User BULfYYMv

Maybe the ecosystem is missing a plugin that can read and clear all of EE’s various cache types.

       
Hop Studios's avatar
Hop Studios
481 posts
about 3 months ago
Hop Studios's avatar Hop Studios

The advantage is, you can cache a tag once and have that affect every page’s performance — or even a sub-set — rather than having to cache the tag on EACH page it appears. It makes filling the cache faster and more efficient.

       
User UWGLgOtE's avatar
User UWGLgOtE
3 posts
about 3 months ago
User UWGLgOtE's avatar User UWGLgOtE

Im loving this thread!

       
User BULfYYMv's avatar
User BULfYYMv
11 posts
about 3 months ago
User BULfYYMv's avatar User BULfYYMv

Okay, that is good insight @hopstudios

       
User BULfYYMv's avatar
User BULfYYMv
11 posts
about 3 months ago
User BULfYYMv's avatar User BULfYYMv

I could talk about cache all day

       
User BULfYYMv's avatar
User BULfYYMv
11 posts
about 3 months ago
User BULfYYMv's avatar User BULfYYMv

Here’s a hypothetical….

Say I have a blog landing/archive page containing a blog entries loop: {exp:channel:entries channel="blog" limit="8" dynamic="no" paginate="bottom" cache="yes" refresh="1440" } .... It requires pagination. What is the most efficient way to cache this?

Would it be something like cache*prefix="blog"?

Say I also have category landings/archives, would I use a different cache*prefix for each category?

Maybe this a bad example because it falls into a different use case.

Does using a cache_prefix break the pagination?

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.