public function persist()
    {
        $parts = explode('/', $this->file);
        array_pop($parts);

        $dir = implode('/', $parts);

        if (!is_dir($dir)) {
            mkdir($dir, 493, true);
        }

        return file_put_contents($this->file, serialize($this->data));
    }
public function persist()
    {
        $parts = explode('/', $this->file);
        array_pop($parts);

        $dir = implode('/', $parts);

        if (!is_dir($dir)) {
            mkdir($dir, 493, true);
        }

        return file_put_contents($this->file, serialize($this->data));
    }
public function persist ( ) { $ parts = explode ( '/' , $ this -> file ) ; array_pop ( $ parts ) ; $ dir = implode ( '/' , $ parts ) ; if ( ! is_dir ( $ dir ) ) { mkdir ( $ dir , 493 , true ) ; } return file_put_contents ( $ this -> file , serialize ( $ this -> data ) ) ; }
Persist the cache data

@return bool
Persist the cache data