mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 02:51:14 +08:00
FEATURE: Filter settings by plugin (#9692)
This commit is contained in:
@ -801,7 +801,7 @@ module Discourse
|
||||
redis_key = "deprecate-notice-#{digest}"
|
||||
|
||||
if !Discourse.redis.without_namespace.get(redis_key)
|
||||
Rails.logger.warn(warning)
|
||||
Rails.logger.warn(warning) if Rails.logger
|
||||
begin
|
||||
Discourse.redis.without_namespace.setex(redis_key, 3600, "x")
|
||||
rescue Redis::CommandError => e
|
||||
|
Reference in New Issue
Block a user