Skip to content

Conversation

@jfialkoff
Copy link

No description provided.

@dlapiduz
Copy link
Contributor

dlapiduz commented Nov 8, 2013

@jfialkoff this looks great but I am trying to understand the use case. Do you have a particular one in mind? How would this work with the expiration of a group in a multiple group scenario?

@jfialkoff
Copy link
Author

Hey Diego, here's a possible scenario. Say you have two links you can click on:

  1. Shows all cars manufactured in the US
  2. Shows all cars manufactured in Germany

You want to cache the rendered HTML for each of these. But, if you go and change a US car, there's no need to update the cache for the Germany cars. Using caching keys in the manner I implemented allows you to invalidate only the US cars.

…ed a decorator to conditionally cache a page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants