Skip to content

Commit

Permalink
Added all update
Browse files Browse the repository at this point in the history
  • Loading branch information
beastie87 committed May 30, 2018
1 parent b99aa6e commit 0a06ad0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tasks/deputi_cashe.rake
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace :deputi_cashe do
desc 'Update all the caches'
task all: [:mp, :mp_month, :friends, :friends_month]
desc "Update mp cashe"
task mp_month: :environment do

Expand Down
4 changes: 4 additions & 0 deletions lib/tasks/division_cashe.rake
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
namespace :division_cashe do
desc 'Update all the caches'
task all: [:whip, :info, :party_voted]

desc "Update party statistick"

task whip: :environment do
Division.all.find_each do |d|
Vote.joins(:mp).where(division_id: d.id).to_a.group_by{|m| m.mp.faction}.each do |f|
Expand Down

0 comments on commit 0a06ad0

Please sign in to comment.