From 0b5e19303d25d88c5c131f38061c9fe9908dc533 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 11 Aug 2014 09:41:50 +1000 Subject: [PATCH] PERF: only run category stats once a day --- app/jobs/scheduled/category_stats.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/scheduled/category_stats.rb b/app/jobs/scheduled/category_stats.rb index fa74463dc..030e8eb21 100644 --- a/app/jobs/scheduled/category_stats.rb +++ b/app/jobs/scheduled/category_stats.rb @@ -1,7 +1,7 @@ module Jobs class CategoryStats < Jobs::Scheduled - every 4.hours + every 24.hours def execute(args) Category.update_stats