CacheBehavior::beforeSave PHP Method

beforeSave() public method

Intercepts save to use the caching datasource instead
public beforeSave ( Model $Model, $options = [] )
$Model Model The calling model
    public function beforeSave(Model $Model, $options = array())
    {
        if ($this->settings[$Model->alias]['clearOnSave']) {
            $this->clearCache($Model);
        }
        return true;
    }