mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 15:04:59 +08:00
9174716737
This method is a huge footgun in production, since it calls
the Redis KEYS command. From the Redis documentation at
https://redis.io/commands/keys/:
> Warning: consider KEYS as a command that should only be used in
production environments with extreme care. It may ruin performance when
it is executed against large databases. This command is intended for
debugging and special operations, such as changing your keyspace layout.
Don't use KEYS in your regular application code.
Since we were only using `delete_prefixed` in specs (now that we
removed the usage in production in
|
||
---|---|---|
.. | ||
distributed_cache_spec.rb | ||
hashtag_autocomplete_service_spec.rb | ||
jobs_spec.rb | ||
pausable_multisite_spec.rb | ||
pausable_spec.rb | ||
post_spec.rb | ||
request_tracker_spec.rb | ||
s3_store_spec.rb | ||
site_settings_spec.rb |