cartodb-4.42/lib/tasks/redis_maintainance.rake
2024-04-06 05:25:13 +00:00

18 lines
393 B
Ruby

namespace :cartodb do
namespace :redis do
desc "update redis with metadata for every user"
task :user_metadata => :environment do
::User.all.each do |user|
user.save_metadata
end
end
desc "purge redis vizjson cache"
task :purge_vizjson => :environment do
::User.each do |user|
user.purge_redis_vizjson_cache
end
end
end
end