lib/glue/cacheable.rb in og-0.28.0 vs lib/glue/cacheable.rb in og-0.29.0

- old
+ new

@@ -123,10 +123,11 @@ end # ... def self.cache_get(klass, pk) + obj.class.ogmanager.cache.get(klass.og_cache_key(pk)) end # ... def self.cache_set(obj) @@ -138,10 +139,11 @@ # call this method where needed. However if you manually alter # the store using Og low level methods (for example a native # SQL query) you should call this method explicitly. def self.cache_delete(klass, pk) - key = "og#{klass}:#{pk}" + #key = "og#{klass}:#{pk}" + key = klass.og_cache_key(pk) # self.og_local_cache.delete(key) klass.ogmanager.cache.delete(key) end end