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

Template Caching doesn't work for {segment_2}

Development and Programming

October11's avatar
October11
183 posts
about 8 years ago
October11's avatar October11

Hi everyone,

I’m banging my head against the wall with this one.

I have a template set up in the following way:

{if segment_1 == ''}
     {exp:channel:entries...} {content} {/exp:channel:entries}
{if:else}
     {exp:channel:entries...} {content} {/exp:channel:entries}
{/if}

I have Template Caching On for 60 minutes.

When Segment_1 is empty, I get 18 Queries instead of ~120…

When Segment_2 is not empty, the Template never caches. It stays at the top-most ~120 queries…

I’ve searched and searched and cannot find anything…

Any clues, similar experiences?

       

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.