Home | 2.6.10 The effect of updates to the cachespec.xml file | 2.7 Putting items into the DynaCache


Cache entry order is important

For each of the three IDs (cache, dependency, invalidation) generated by cache entries, a <cache-entry> contains multiple elements. The DynaCache runs the <cache-id> rules in order, and the first one that successfully generates an ID is used to cache that output.

If the object is to be cached, each one of the <dependency-id> elements is run to build a set of dependency IDs for that cache entry.

Finally, each of the <invalidation> elements is run, building a list of IDs that the DynaCache invalidates, whether or not this object is stored in the cache at the time the invalidation rule is matched.

+

Search Tips   |   Advanced Search