/** * Any changes to the model must be re-cached. * @see RedBeanModel::save() */ public function save($runValidation = true, array $attributeNames = null) { $saved = parent::save($runValidation, $attributeNames); if ($saved) { GeneralCache::cacheEntry('NamedSecurableItem' . $this->name, $this); } return $saved; }