Sean,

To round this discussion off, the Heroku docs say that the
Cache-Control header should be set to control the length of time a
page should stay in the cache:

http://docs.heroku.com/http-caching#caching-dynamic-content-by-age

Is it possible to control the max-age header in Radiant? If so, how?
Is it possible to set certain pages (and their children) to have a
discrete expiry? For instance, could I set the /news/ sub-tree with a
low 5 minute expiry and other sub-trees with a much higher expiry?

Cheers,
Charles

2009/12/1 Sean Cribbs <[email protected]>:
>
>> Thanks Sean. When you say "as of the current version", you mean 0.8.1 rather
>> than the RC, right? I am using 0.8.1 and doing a hard refresh definitely
>> doesn't clear the cache properly. In fact, the behaviour can get quite
>> strange: repeated hard-refreshes can deliver any one of several revisions of
>> the same page. I am guessing each refresh must pulling data from different
>> dbs that haven't been sync'd. But that's just a guess; I've really no idea
>> what's going on. :)
>>
>>
> I meant 0.8.x or later... things haven't changed with that in 0.9 RC1.
> Your problem sounds like it's with Heroku's caching layer.  Rack::Cache
> tries to stay to the HTTP RFC in that it allows browser-initiated
> refreshes to invalidate the cache (although this may be undesirable in
> some cases, e.g. DDoS).  Heroku likely has the "stale-while-invalid"
> option in their cache, too, which is why you might be seeing different
> versions randomly.
>> Doing Radiant::Cache.clear in the heroku console definitely seems to help
>> matters, though.
>>
>>
> Good to know!
>
> Sean
> _______________________________________________
> 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

Reply via email to