/** * Check if purging is enabled and then purge the attributes * that need purging. * * @param Esensi\Model\Contracts\PurgingModelInterface $model * @param string $event name */ protected function performPurging(PurgingModelInterface $model, $event) { if ($model->getPurging()) { $model->purgeAttributes(); } }