mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FEATURE: Create IE Support Plugin (#8520)
This core plugin, which could be split off in the future, allows us to load IE specific code on demand. Co-authored-by: jjaffeux <j.jaffeux@gmail.com>
This commit is contained in:
parent
5431ae0a17
commit
4abe4454dd
12 changed files with 517 additions and 397 deletions
|
@ -84,7 +84,7 @@ class Plugin::Instance
|
|||
|
||||
def register_anonymous_cache_key(key, &block)
|
||||
key_method = "key_#{key}"
|
||||
add_to_class(Middleware::AnonymousCache, key_method, &block)
|
||||
add_to_class(Middleware::AnonymousCache::Helper, key_method, &block)
|
||||
Middleware::AnonymousCache.cache_key_segments[key] = key_method
|
||||
Middleware::AnonymousCache.compile_key_builder
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue