Preventing caching of specific snippets

Hi,

is there a way to prevent a snippet from being cached, but caching
everything else?

Thanks,
Cyx

AFAIK Radiant caches full rendered pages, no snippets.

/AITOR

That’s correct, and whenever you change a snippet, the whole page
cache should be cleared.

Sean

ahh,

well the scenario is a have a snippet that renders a randomized banner
for
the site. if course if you cache the page, the randomization won’t
happen.
do you guys know of a way around this?

right now my only solution has been to turn off caching all in all. i
hope
there’s a better way to do this.

Thanks,
Cyx

You could do the randomization in Javascript, perhaps. Here’s a basic
outline:

Sean

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs