# Share\_layouts and cache

**URL:** <https://www.ruby-forum.com/t/share-layouts-and-cache/179971>\
**Category:** Radiant CMS\
**Created:** [December 8, 2009, 11:52pm UTC](https://www.ruby-forum.com/t/share-layouts-and-cache/179971 "2009-12-08T23:52:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brettr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ec9cab/32.png) [@brettr](https://www.ruby-forum.com/u/brettr)\
**Post date:** [December 8, 2009, 11:52pm UTC](https://www.ruby-forum.com/t/share-layouts-and-cache/179971/1 "2009-12-08T23:52:35Z")

</div>

I’ve got a Radiant installation with a customer-facing area with  
marketing information and some side functionality for a “my account”  
section. The account section includes standard stuff like account  
history and preferences. I’ve got it in a Radiant extension so I can  
have the account pages use the layouts from Radiant using share\_layouts.

The problem is that the account pages cannot be cached, so the layouts  
get re-rendered on each page call, and they’re unworkably slow.

How have others handled this issue? Is there an easy way to cache  
layouts and snippets (and perhaps even page parts) but not the dynamic  
content? Do you just roll your own caching scheme?

Thanks,  
Brett
