Skip to content
Snippets Groups Projects
Commit 95ad41db authored by Alex Reisner's avatar Alex Reisner
Browse files

Merge pull request #461 from weibel/master

Fix for AutoexpireCacheDalli urls
parents 6f6c1607 f4263db1
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ class AutoexpireCacheDalli ...@@ -20,7 +20,7 @@ class AutoexpireCacheDalli
if value.nil? if value.nil?
del(url) del(url)
else else
key_cache_add(url) if @store.add(key, YAML::dump(value), @ttl) key_cache_add(url) if @store.add(url, YAML::dump(value), @ttl)
end end
value value
end end
...@@ -30,7 +30,7 @@ class AutoexpireCacheDalli ...@@ -30,7 +30,7 @@ class AutoexpireCacheDalli
end end
def del(url) def del(url)
key_cache_delete(url) if @store.delete(key) key_cache_delete(url) if @store.delete(url)
end end
private private
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment