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:
Martin Brennan
2024-08-06 09:59:49 +10:00
committed by GitHub
parent 3b39c798bf
commit 2225c03455
4 changed files with 87 additions and 17 deletions

View File

@ -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