Pretty sure `SiteController.cache_timeout = 12.hours` will do what you want. Note that this won't prevent the app from sleeping under austere Passenger settings, but it will ensure your pages are served from the cache once it spins back up.
On Mar 18, 2010, at 11:29 AM, Adam van den Hoven wrote:
hey guys.
Is it possible to change how Radiant does its caching? The site I'm working on has 90+% of its content static. We're also hosting the site on Dreamhost so the combination of 5 minute caches, 5 minute restart of passenger and comparatively infrequent visits means that, well, the site is DOG slow. If I'd realized this WAY back when I started the project (one of those probono things that takes years) I'd have tried something else (not that anything else at the time was palatable).
I'd like to set my cache to be something on the scale of 12 hours.
I'm sure its doable, I'm just not sure how.
Unless someone knows of an extension that runs on command ("Publish Now") and writes out all the resulting files to /public? That's even better for my needs...
Adam--
Radiant CMS Dev Mailing List
Post: radiantcms-dev@googlegroups.com
Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
Group Site: http://groups.google.com/group/radiantcms-dev/
No comments:
Post a Comment