mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Merge pull request #3593 from tgxworld/cache_results_on_about_page
Cache results on about page
This commit is contained in:
@@ -8,4 +8,8 @@ class AboutSerializer < ApplicationSerializer
|
||||
:locale,
|
||||
:version,
|
||||
:https
|
||||
|
||||
def stats
|
||||
object.class.fetch_cached_stats || Jobs::AboutStats.new.execute({})
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user