mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 22:17:45 +08:00
FIX: Cache all flags multisite-safe (#28204)
This fixes an N1 in topics when loading all flags and also makes the cache multisite-safe, followup to fb7cc2d3754d23e4c30fa2794eb7ac84ffdc667e
This commit is contained in:
@ -3,6 +3,8 @@
|
||||
RSpec.describe Flag, type: :model do
|
||||
after(:each) { Flag.reset_flag_settings! }
|
||||
|
||||
use_redis_snapshotting
|
||||
|
||||
it "has id lower than 1000 for system flags" do
|
||||
flag = Fabricate(:flag, id: 1)
|
||||
expect(flag.system?).to be true
|
||||
|
Reference in New Issue
Block a user