mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 01:53:39 +08:00
DEV: Don't warn about clearing tmp/cache (#24602)
No reason to print it out every time 😅 (plus, use the ruby method)
This commit is contained in:
parent
8f901cdd38
commit
d7f618807e
|
@ -29,10 +29,7 @@ def ensure_cache_clean!
|
||||||
old_hash = File.exist?(hash_file) ? File.read(hash_file) : nil
|
old_hash = File.exist?(hash_file) ? File.read(hash_file) : nil
|
||||||
|
|
||||||
if old_hash && old_hash != super_sha
|
if old_hash && old_hash != super_sha
|
||||||
puts "WARNING: It looks like your discourse plugins or core version have recently changed."
|
FileUtils.rm_rf("#{RAILS_ROOT}/tmp/cache")
|
||||||
puts "The tmp/cache directory will be wiped to avoid development issues."
|
|
||||||
`rm -rf #{RAILS_ROOT}/tmp/cache`
|
|
||||||
puts
|
|
||||||
end
|
end
|
||||||
|
|
||||||
FileUtils.mkdir_p(RAILS_ROOT + "/tmp")
|
FileUtils.mkdir_p(RAILS_ROOT + "/tmp")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user