DEV: Make csp cache work like other caches (#20818)
This commit is contained in:
parent
0f4bb19524
commit
9d34b73a5e
|
@ -27,7 +27,7 @@ class ContentSecurityPolicy
|
|||
|
||||
def theme_extensions(theme_id)
|
||||
key = "theme_extensions_#{theme_id}"
|
||||
cache[key] ||= find_theme_extensions(theme_id)
|
||||
cache.defer_get_set(key) { find_theme_extensions(theme_id) }
|
||||
end
|
||||
|
||||
def clear_theme_extensions_cache!
|
||||
|
|
Loading…
Reference in New Issue