Prado\I18N\core\TCache_Lite::_writeAndControl PHP Method

_writeAndControl() public method

Write the given data in the cache file and control it just after to avoid corrupted cache entries
public _writeAndControl ( string $data ) : boolean
$data string data to put in cache
return boolean true if the test is ok
    function _writeAndControl($data)
    {
        $this->_write($data);
        $dataRead = $this->_read($data);
        return $dataRead == $data;
    }