Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Applying Different Cache Logic For Different Actions

$
0
0
In addition to my previous question about how to use both cache methods COutputCache and CHttpCacheFilter in Yii, I have another question about if is it possible to apply different cache rules depending on the action.

For example, for the index action I'd like to set a duration of 3600 while for other actions I'd like to set a higher duration or even a different varyBySession value. Is possible to define different properties and add them to the filters chain?

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>