After saving the change into the file, it is not displaying the changes. The stache is not updating automatically.
I do this action as a plugin, to reset all closed_today values overnight.
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$collections = Entry::whereCollection('CollectionName');
$collections->each(function($collection) {
$collection->set('closed_today', false);
$collection->save();
});
}
Is it a bug or do i have to trigger clear:stache. If yes, how to fire the command inside an addon command i have written myself.