You could do the randomization in Javascript, perhaps. Here's a basic outline:
<script type="text/javascript">
// <![CDATA[
var banners = [];
<r:find url="/banners">
<r:children:each>
banners.push '<r:url/>'
</r:children:each>
// Do something here to load one of the urls randomly with Ajax.
// ]]>
</script>
Sean
On 7/3/07, Cyril Ucron David <[EMAIL PROTECTED]> wrote:
> 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
>
>
> On 7/3/07, Sean Cribbs <[EMAIL PROTECTED]> wrote:
> >
> > That's correct, and whenever you change a snippet, the whole page
> > cache should be cleared.
> >
> > Sean
> >
> > On 7/3/07, Aitor Garay-Romero <[EMAIL PROTECTED]> wrote:
> > > AFAIK Radiant caches full rendered pages, no snippets.
> > >
> > > /AITOR
> > >
> > > On 7/3/07, Cyril Ucron David <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi,
> > > >
> > > > is there a way to prevent a snippet from being cached, but caching
> > > > everything else?
> > > >
> > > > Thanks,
> > > > Cyx
> > > >
> > > > --
> > > > no one, not even the rain, has such small hands
> > > > _______________________________________________
> > > > Radiant mailing list
> > > > Post: [email protected]
> > > > Search: http://radiantcms.org/mailing-list/search/
> > > > Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> > > >
> > > _______________________________________________
> > > Radiant mailing list
> > > Post: [email protected]
> > > Search: http://radiantcms.org/mailing-list/search/
> > > Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> > >
> > _______________________________________________
> > Radiant mailing list
> > Post: [email protected]
> > Search: http://radiantcms.org/mailing-list/search/
> > Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> >
>
>
>
> --
> no one, not even the rain, has such small hands
> _______________________________________________
> Radiant mailing list
> Post: [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant