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 added tag caching to a channel:entries tag, but noticed no drop in the Queries, any ideas why?

Development and Programming

User aridHq2J's avatar
User aridHq2J
21 posts
2 weeks ago
User aridHq2J's avatar User aridHq2J

I added tag caching to a channel:entries tag, but noticed no drop in the Queries, any ideas why? I usually see a drop after the first refresh of a page.

       
User BULfYYMv's avatar
User BULfYYMv
108 posts
2 weeks ago
User BULfYYMv's avatar User BULfYYMv

your code sir?

       
User aridHq2J's avatar
User aridHq2J
21 posts
2 weeks ago
User aridHq2J's avatar User aridHq2J

This is my “pages” template

{layout="site/_main_wrap"}
{layout:set name='bodyclass'}inside{/layout:set}

{exp:channel:entries channel="pages" limit="1" status="open" disable="categories|member_data|pagination" cache="yes" refresh="60"}

{if no_results}
    {redirect="404"}
{/if}


{layout:set name='entryTitle'}{title}{/layout:set}
{layout:set name='pageURL'}{structure:page:url}{/layout:set}
{layout:set name='seoTitle'}{seo_title}{/layout:set}
{layout:set name='seoDescription'}{seo_meta_description}{/layout:set}
{layout:set name='seoOGTitle'}{seo_og_title}{/layout:set}
{layout:set name='seoOGDescription'}{seo_og_description}{/layout:set}
{layout:set name='seoTwitterTitle'}{seo_twitter_title}{/layout:set}
{layout:set name='seoTwitterDescription'}{seo_twitter_description}{/layout:set}
{layout:set name='seoOGImage'}{seo_og_image}{img:url:resize width='1200' height='628' crop='yes'}{/seo_og_image}{/layout:set}
{layout:set name='seoTwitterImage'}{seo_twitter_image}{img:url:resize width='1200' height='628' crop='yes'}{/seo_twitter_image}{/layout:set}
{layout:set name='robotsDirective'}{seo_robots_directive:value}{/layout:set}

<main>
    

    {page_builder}
     {p_hero}
     {p_section}
     {p_rich_content}
     {p_cta_button}
     {p_coalition}
     {p_faq}
     {p_logo_grid}
     {p_slidedown}
     {p_slideshow}
     {p_scrolling_blocks}
     {p_scrolling_stats}
     {p_people_grid}
     {p_2col_feature}
     {p_feature_slider}
     {p_2col_headlinetext}
     {p_home_animation}
     {p_news_ticker}
     {p_contact_grid}
     {p_full_width_video}
     {p_2col_mediatext}
     {p_scrolling_funders}
     {p_code_embed}
     {p_scrolling_testimonial}
     {p_news_scroll}
    {/page_builder}
    
</main>
    
{/exp:channel:entries}
       
User BULfYYMv's avatar
User BULfYYMv
108 posts
2 weeks ago
User BULfYYMv's avatar User BULfYYMv

Yeah, that looks good. Which cache driver are you using?

       
User aridHq2J's avatar
User aridHq2J
21 posts
2 weeks ago
User aridHq2J's avatar User aridHq2J

page_builder is a bloqs field and those things within are partials

       
User iC5U2Ymh's avatar
User iC5U2Ymh
25 posts
2 weeks ago
User iC5U2Ymh's avatar User iC5U2Ymh

What cache driver in your settings?

       
User aridHq2J's avatar
User aridHq2J
21 posts
2 weeks ago
User aridHq2J's avatar User aridHq2J

Screenshot 2026-04-14 at 2.20.08 PM.png

       
User BULfYYMv's avatar
User BULfYYMv
108 posts
2 weeks ago
User BULfYYMv's avatar User BULfYYMv

Also, if you want to cache bloqs:

$config['bloqs_cache_enabled'] = true;
       
User BULfYYMv's avatar
User BULfYYMv
108 posts
2 weeks ago
User BULfYYMv's avatar User BULfYYMv

I don’t typically use because it can be aggressive, but might be what you are looking for.

       
User BULfYYMv's avatar
User BULfYYMv
108 posts
2 weeks ago
User BULfYYMv's avatar User BULfYYMv

<https://docs.boldminded.com/bloqs/docs/configuration/hidden-config-options#field-caching>

       
User BULfYYMv's avatar
User BULfYYMv
108 posts
2 weeks ago
User BULfYYMv's avatar User BULfYYMv

Honestly, I need to test it again. It’s been a while.

       
User aridHq2J's avatar
User aridHq2J
21 posts
2 weeks ago
User aridHq2J's avatar User aridHq2J

i could try it, but wondering why the normal template caching is not working

       
User BULfYYMv's avatar
User BULfYYMv
108 posts
2 weeks ago
User BULfYYMv's avatar User BULfYYMv

Check your directory permissions on the cache folder?

       
User BULfYYMv's avatar
User BULfYYMv
108 posts
2 weeks ago
User BULfYYMv's avatar User BULfYYMv

since you are using file cache.

       
User BULfYYMv's avatar
User BULfYYMv
108 posts
2 weeks ago
User BULfYYMv's avatar User BULfYYMv

Also, just to make sure we are saying the same thing… what you are doing is “tag caching” not “template caching”.

       
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.