lib/scrivito/cache/file_store.rb in scrivito_sdk-0.50.1 vs lib/scrivito/cache/file_store.rb in scrivito_sdk-0.60.0.rc1
- old
+ new
@@ -13,14 +13,17 @@
delegate :clear, to: :internal_store
private
- delegate :read, :write, to: :internal_store, prefix: :internal
+ delegate :read, to: :internal_store, prefix: :internal
- def transform_key(key)
- # Workaround for rails/rails#15616. Will be fixed in Rails 4.2.
- Digest::SHA1.hexdigest(key)
+ def internal_write(key, value, expires_in = nil)
+ internal_store.write(key, value, expires_in: expires_in)
+ end
+
+ def forward_write?(key, value, expires_in)
+ super && !expires_in
end
end
end
end