Development

#2832 (cache manager should support custom callback to determine cache state for items)

You must first sign up to be able to contribute.

Ticket #2832 (new enhancement)

Opened 7 months ago

Last modified 2 months ago

cache manager should support custom callback to determine cache state for items

Reported by: Andrejs.Verza Assigned to: fabien
Priority: major Milestone: 1.2.0
Component: cache Version: 1.1.0 DEV
Keywords: cache Cc:
Qualification: Accepted

Description

One of the main aspects preventing me of using symfony's cache widely is that I cannot specify exactly what criterias should the cache manager look at.

Symfony has great validation system. Yet it would be very weak, hadn't it custom methods - validateSomeAction() - for every action. So - why not to implement something similar for cache system? It could be a method named cacheSomeAction() that could re-check the parameters within the cached version and the actual one. After some custom comparison, the method then would return true or false, meaning to use the cached version or execute the action. Or vice versa.

For example, I would definetly like to include flash variables into account.

Change History

01/24/08 11:39:21 changed by Andrejs.Verza

The other case is to ignore some of the request parameters when cacheing pages.

03/13/08 07:49:43 changed by Carl.Vondrick

  • version deleted.
  • qualification changed from Unreviewed to Design decision.
  • summary changed from Cache manager enhancement to cache manager should support custom callback to determine cache state for items.

I would like to see something like this too.

06/23/08 07:05:46 changed by dwhittle

  • version set to 1.1.0 DEV.
  • qualification changed from Design decision to Accepted.
  • milestone set to 1.2.0.

+1 from me as well