mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 01:35:22 +08:00
DEV: s/\$redis/Discourse\.redis (#8431)
This commit also adds a rubocop rule to prevent global variables.
This commit is contained in:
@ -767,7 +767,7 @@ describe TopicQuery do
|
||||
|
||||
context 'suggested_for' do
|
||||
def clear_cache!
|
||||
$redis.keys('random_topic_cache*').each { |k| $redis.del k }
|
||||
Discourse.redis.keys('random_topic_cache*').each { |k| Discourse.redis.del k }
|
||||
end
|
||||
|
||||
before do
|
||||
|
Reference in New Issue
Block a user