yiisoft/yii — Issue #394: Let CChainedCacheDependency optionally change evaluation of hasChanged
Author: mikehaertl
Created: 2012-02-24 07:40:34+00:00
State: open

Current situation:
---
CChainedCacheDependency will check and evaluate all dependencies in the chain until it finds the first one, which *has changed*.

What should be possible:
---
It should only evaluate dependencies in the chain until it finds the first one which *has not changed*.

Why is this useful:
---
You may have *cheap* and *expensive* dependencies. You only want the expensive dependency to be evaluated if the cheap one reports a change. If the cheap one reports no change, the cached content can still be considered valid.