trigun0x2/hearthstats — pull request #177 by zetsubo (2014-03-30 05:35:00+00:00)
Title: fixes #174 - use page caching instead of fragment caching

Caching a view fragment here isn't particularly helpful - the controller action still fetches the RSS feeds every time. From what I understand, fragment caching would more appropriate for caching database/ajax/whatever requests made in the view (and there aren't really any this case).

Anyways, this'll just save the entire generated /news page on the server and expire it daily, skipping the controller action entirely. If the page is particularly popular, you may want to set :race_condition_ttl to avoid a race condition when it expires.