mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Respect invalidate_oneboxes option for inline oneboxes
This commit is contained in:
@@ -23,8 +23,9 @@ class InlineOneboxer
|
||||
|
||||
def self.lookup(url, opts = nil)
|
||||
opts ||= {}
|
||||
opts = opts.with_indifferent_access
|
||||
|
||||
unless opts[:skip_cache]
|
||||
unless opts[:skip_cache] || opts[:invalidate]
|
||||
cached = cache_lookup(url)
|
||||
return cached if cached.present?
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user