Merge pull request #3593 from tgxworld/cache_results_on_about_page

Cache results on about page
This commit is contained in:
Sam
2015-07-21 10:04:51 +10:00
12 changed files with 121 additions and 19 deletions

View File

@@ -8,4 +8,8 @@ class AboutSerializer < ApplicationSerializer
:locale,
:version,
:https
def stats
object.class.fetch_cached_stats || Jobs::AboutStats.new.execute({})
end
end