Change harcoded memcache limit (#785)
This commit is contained in:
parent
30dbe13550
commit
c98e97d5a2
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ task renew_hired_articles: :environment do
|
|||
end
|
||||
|
||||
task clear_memory_if_too_high: :environment do
|
||||
if Rails.cache.stats.flatten[1]["bytes"].to_i > 2000000000
|
||||
if Rails.cache.stats.flatten[1]["bytes"].to_i > 4600000000
|
||||
Rails.cache.clear
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue