# Snippets

**URL:** <https://www.ruby-forum.com/t/snippets/124422>\
**Category:** Radiant CMS\
**Created:** [December 28, 2007, 4:21pm UTC](https://www.ruby-forum.com/t/snippets/124422 "2007-12-28T16:21:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dacbo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Post date:** [December 28, 2007, 4:21pm UTC](https://www.ruby-forum.com/t/snippets/124422/1 "2007-12-28T16:21:44Z")

</div>

Does anyone know why whenever I edit a snippet it doesn’t show up on the  
site until I open the layout its used in and save that file again?

---

<div class="post-metadata">

**Author:** ![dacbo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Post date:** [December 28, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/snippets/124422/2 "2007-12-28T16:24:40Z")

</div>

Changing a snippet should cause the entire cache to be cleared. We will  
write some specs to verify this. Barring that, you can always click  
“Clear page cache” on the Pages tab.

Sean

---

<div class="post-metadata">

**Author:** ![dacbo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Post date:** [December 28, 2007, 4:55pm UTC](https://www.ruby-forum.com/t/snippets/124422/3 "2007-12-28T16:55:57Z")

</div>

I have just confirmed that clicking “Clear page cache” does not cause  
the  
snippet to be updated on the site. The only thing I can do to get the  
snippet updated is to re-save the layout that the snippet is included  
in.  
I’m not sure if it matters but I’m running in development mode using  
mongrel  
on OSX 10.5. If I can help out at all with this issue, I would be happy  
to,  
just point me in the right direction.

---

<div class="post-metadata">

**Author:** ![dacbo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Post date:** [December 28, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/snippets/124422/4 "2007-12-28T23:10:10Z")

</div>

I’m using 0.6.4 the gem version.

---

<div class="post-metadata">

**Author:** ![dacbo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Post date:** [December 29, 2007, 12:37am UTC](https://www.ruby-forum.com/t/snippets/124422/5 "2007-12-29T00:37:32Z")

</div>

Yep, this is fixed in with the latest trunk release for me.  
–Tom

---

<div class="post-metadata">

**Author:** ![dacbo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Post date:** [December 28, 2007, 10:40pm UTC](https://www.ruby-forum.com/t/snippets/124422/6 "2007-12-28T22:40:51Z")

</div>

What version are you at. I had to upgrade to trunk to fix this.  
–Tom

---

<div class="post-metadata">

**Author:** ![dacbo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Post date:** [December 29, 2007, 2:40am UTC](https://www.ruby-forum.com/t/snippets/124422/7 "2007-12-29T02:40:56Z")

</div>

Cool, Do you run any production sites on the trunk and have you had any  
headaches doing so? How would you go about upgrading from the gem to  
the  
trunk?

---

<div class="post-metadata">

**Author:** ![dacbo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Post date:** [December 29, 2007, 3:54am UTC](https://www.ruby-forum.com/t/snippets/124422/8 "2007-12-29T03:54:04Z")

</div>

Inside your Radiant project, run `rake radiant:freeze:edge`.

Sean
