Well, if you have to list more than a few dozen pages that need to utilize the Page Parts extension on a layout and/or use the Reorder Children extension with more than a few dozen pages this will most likely cause application timeout errors on Heroku, as these extensions just are too slow to handle large requests. I was hoping some kind of page specific in-memory caching might make this setup less frustrating, but it's either not possible or too advanced for me to figure out within my timeframe and budget. If you have large lists of pages (mine is about 200) that require related metadata that can be called when necessary, the Page Parts extension is not recommended.
Zac On Tuesday, August 27, 2013 12:13:07 PM UTC-4, Zachary Linke wrote: > > I guess my question is, more specifically, is there are a way I can cache > a page in memory without having to use Memcachier? > > Thank you, > > Zac > > On Saturday, August 17, 2013 4:36:40 PM UTC-4, Zachary Linke wrote: >> >> I'm running Radiant 1.0.1 in Rails 2.3.18 on Heroku and it needs some >> speed improvement / optimization. I'm using Thin for a webserver. >> >> My production.rb looks like this... >> >> # Settings specified here will take precedence over those in >> config/environment.rb >> >> # The production environment is meant for finished, "live" apps. >> # Code is not reloaded between requests >> config.cache_classes = true >> >> # Use a different logger for distributed setups >> # config.logger = SyslogLogger.new >> >> >> # Full error reports are disabled and caching is on >> config.action_controller.consider_all_requests_local = false >> config.action_controller.perform_caching = true >> >> # Enable serving of images, stylesheets, and javascripts from an asset >> server >> # config.action_controller.asset_host = " >> http://assets.example.com" >> >> # Disable delivery errors if you bad email addresses should just be >> ignored >> # config.action_mailer.raise_delivery_errors = false >> >> # Cache your content for a longer time, the default is 5.minutes >> config.after_initialize do >> Radiant::Config['site.url'] = 'mywebsite.com' >> SiteController.cache_timeout = 1.seconds >> end >> >> >> The biggest problem is when I try to show a list of 100 pages on the site >> and it results in a time out and application error almost every time. >> >> Do I need to increase the site controller cache to a longer time? Do I >> need to implement a different caching to work with Heroku? Do I need to >> switch to a different webserver like Unicorn or Puma? >> >> >> Any help would be appreciated.... >> >> Thanks! >> >> Zac >> > -- --- You received this message because you are subscribed to the Google Groups "Radiant CMS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
