Neos\Cache\Backend\SimpleFileBackend::writeCacheFile PHP Method

writeCacheFile() protected method

Writes the cache data into the given cache file, using locking.
protected writeCacheFile ( string $cacheEntryPathAndFilename, string $data ) : boolean | integer
$cacheEntryPathAndFilename string
$data string
return boolean | integer Return value of file_put_contents
    protected function writeCacheFile($cacheEntryPathAndFilename, $data)
    {
        $lock = new Lock($cacheEntryPathAndFilename);
        $result = file_put_contents($cacheEntryPathAndFilename, $data);
        $lock->release();
        return $result;
    }