mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Use the theme cache helper for settings
The previous Discourse.cache usage was different to how other theme-related caching is handled, and also requires reaching out to redis every time. The common theme cache is held in memory (as a DistributedCache)
This commit is contained in:
@@ -512,7 +512,7 @@ HTML
|
||||
theme.save!
|
||||
|
||||
Upload.find(upload.id).destroy
|
||||
theme.clear_cached_settings!
|
||||
theme.remove_from_cache!
|
||||
|
||||
json = JSON.parse(cached_settings(theme.id))
|
||||
expect(json).to be_empty
|
||||
|
||||
Reference in New Issue
Block a user