DDC-1563: Result cache for repository queries #2199

Closed
doctrinebot opened this Issue Dec 25, 2011 · 3 comments

1 participant

@doctrinebot

Jira issue originally created by user @beberlei:

Many related "standing data" tables are very static and seldom change. There should be a metadata config to enable result cache for ALL repository operations.

@entity(resultCache=@cache(ttl=3600))

@doctrinebot

Comment created by @beberlei:

This should directly support cache invalidation through a tag. Each repository gets a key with the current version. The version is one part ofthe actual cache datas key.

A new cache key version is generated:

  1. When none is found during find operation
  2. When any write operation is done.

For transaction consisteny the rollback operation in UoW needs to reset cache keys and only after a succesful commit operation the new cache key version should be set.

We may need begin, commit, rollback events in UoW for this.

@doctrinebot

Comment created by @FabioBatSilva:

Fixed by : b081e56

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added this to the 2.5 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment