protected function after_update($result) {
        $cache = \cache::make('tool_dataprivacy', 'purpose');
        $cache->set($this->get('id'), $this->to_record());
    }
protected function after_update($result) {
        $cache = \cache::make('tool_dataprivacy', 'purpose');
        $cache->set($this->get('id'), $this->to_record());
    }
protected function after_update ( $ result ) { $ cache = \ cache :: make ( 'tool_dataprivacy' , 'purpose' ) ; $ cache -> set ( $ this -> get ( 'id' ) , $ this -> to_record ( ) ) ; }
Updates the cache record.

@param bool $result
@return null
Updates the cache record .