# Caching a site wide partial

**URL:** <https://www.ruby-forum.com/t/caching-a-site-wide-partial/109902>\
**Category:** Rails\
**Created:** [July 20, 2007, 12:56am UTC](https://www.ruby-forum.com/t/caching-a-site-wide-partial/109902 "2007-07-20T00:56:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![plewizard](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ce7236/32.png) [@plewizard](https://www.ruby-forum.com/u/plewizard)\
**Post date:** [July 20, 2007, 12:56am UTC](https://www.ruby-forum.com/t/caching-a-site-wide-partial/109902/1 "2007-07-20T00:56:15Z")

</div>

hi, i’ve been having trouble trying to get my head around caching a  
partial that is included in more than one action. partial caching is  
based on action and so it must cache a new partial for each action in  
the site (if the partial is on almost every page in the site like mine  
is) and what’s worse it must expire each action individually.

is there an easier way? thanks for any help.
