lib/scrivito/cache/file_store.rb in scrivito_sdk-0.60.0.rc1 vs lib/scrivito/cache/file_store.rb in scrivito_sdk-0.60.0.rc2
- old
+ new
@@ -19,9 +19,14 @@
def internal_write(key, value, expires_in = nil)
internal_store.write(key, value, expires_in: expires_in)
end
+ def transform_key(key)
+ # Workaround for rails/rails#15616. Will be fixed in Rails 4.2.
+ Digest::SHA1.hexdigest(key)
+ end
+
def forward_write?(key, value, expires_in)
super && !expires_in
end
end
end