Skip to content

Tag: dataprovider

Yii2 : how to cache active data provider?

In my PostSearch model I have this code : my try, instead of above line return $dataProvider, would be this block of code: I would like to cache the result returned by ADP, based on the updated_at field. I mean I want to serve data from cache until some change is made. My code does not work, I mean caching