DEV: Make csp cache work like other caches (#20818)

This commit is contained in:
Daniel Waterworth 2023-03-27 09:22:38 -05:00 committed by GitHub
parent 0f4bb19524
commit 9d34b73a5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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