FIX: Respect invalidate_oneboxes option for inline oneboxes

This commit is contained in:
Vinoth Kannan
2018-09-03 22:33:43 +05:30
parent ecf60c0c33
commit 24a14af15a
7 changed files with 40 additions and 8 deletions

View File

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