mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FEATURE: Filter settings by plugin (#9692)
This commit is contained in:
parent
3b2b635e9b
commit
8149bfbaf1
10 changed files with 85 additions and 66 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue