I have read many of the posting on this on here, and the Docs, but still am having problems figuring out how to do what I want.
I am using a GridView with dropDown filters. I currently have the following code in my Audio
model to get the selection array:
Public function getFeednameSelect() {
return ArrayHelper::map(
Audio::find()
->select('feedname')
->distinct()
->asArray()
->all(),
'feedname', 'feedname'),
}
The Audio
model currently has over 83k records. I would like to
- Probably cache save to a File
- Have it rebuild once or twice a day.
- It could be linked to changes in a different model
Feeds
model is count(*) changes. - I’m using the basic-app
I really haven’t tried anything yet. This is my first attempt at caching anything.