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

Implementing a embedded cache

Development and Programming

Robbert's avatar
Robbert
1 posts
14 years ago
Robbert's avatar Robbert

Hi there,

I have a complex channel structure:

Menu type > Menu course > Menu item

Because of that structure I made a template with 3 embeds:

page/menukaart includes/menu includes/menu_gangen includes/menu_items

Generating the page takes a long time, as you see here: http://tinyurl.com/3p889ss

I assume it takes such a long time because the embeds cant be cached (I use cache on the entry tags, on all the templates that get embedded). Also the top level template is cached (page/menukaart). But it doesnt seem to take much time of the generating).

Is there a way I can cache the whole generated template (including the embed)?

Maybe this is what I need? http://devot-ee.com/add-ons/cachecracker

       
the3mus1can's avatar
the3mus1can
426 posts
14 years ago
the3mus1can's avatar the3mus1can

I have not tried CacheCracker, but I will now. I have used Template Morsels from Solspace for this type of situation.

       
Robbert's avatar
Robbert
1 posts
14 years ago
Robbert's avatar Robbert

I got it!

I added {exp:template_morsels:harvest} above the first embed, and for each embed tag I added:

template_morsels:harvest=”y” to the attributes

Thanks for your assistance! I went from 12 seconds to 2 seconds!

       

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.