Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Add skip_digest option key to allow bypassing cache digestion #16

Merged
merged 1 commit into from Nov 25, 2012

Conversation

latortuga
Copy link
Contributor

In addition to the already present bypass method of passing an explicitly version numbered cache key (e.g. ['v1','cache-key']), this adds an option to the cache in order to give control in bypassing the digest append step on a case-by-case basis.

Discussion in #12.

In addition to the already present bypass method of passing an explicitly
version numbered cache key (e.g. ['v1','cache-key']), this adds an option
to the cache in order to give control in bypassing the digest append step
on a case-by-case basis.
dhh added a commit that referenced this pull request Nov 25, 2012
Add skip_digest option key to allow bypassing cache digestion
@dhh dhh merged commit 4e679af into rails:master Nov 25, 2012
@dhh
Copy link
Member

dhh commented Nov 25, 2012

Great work. Can you get this fix into rails/master as well?

@latortuga
Copy link
Contributor Author

Yes absolutely. I will post again when I submit it.
On Nov 25, 2012 5:49 AM, "David Heinemeier Hansson" <
notifications@github.com> wrote:

Great work. Can you get this fix into rails/master as well?


Reply to this email directly or view it on GitHubhttps://github.com//pull/16#issuecomment-10692616.

@phuongnd08
Copy link

Fantastic. Thanks.

@latortuga
Copy link
Contributor Author

@dhh @phuongnd08 I have a unit test and an implementation for skip_cache: true in rails master however there is currently no support for cache_digests' explicitly_versioned_cache_key? check. Would you like me to add that implementation as well?

@phuongnd08
Copy link

@latortuga: I don't understand cache_digests that well to know if such method is necessary or not :) Let's hear from @dhh then.

sgerrand pushed a commit to sgerrand/rails that referenced this pull request Nov 2, 2013
This add support for sending an explicit opt-out of the "Russian-doll"
cache digest feature on a case-by-case basis. This is useful when cache-
expiration needs to be performed manually and it would be otherwise
difficult to know the exact name of a digested cache key.

More information: rails/cache_digests#16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants