// This will destory an existing cache file!
if ($this->ret == $this->statusDone) {
// Create file
- if ($this->isCacheReadable()) chmod($this->fqfn, 0666);
+ if ($this->isCacheReadable()) changeMode($this->fqfn, 0666);
$this->pointer = fopen($this->fqfn, 'w') or app_die(__METHOD__, __LINE__, "Cannot write to cache ".$this->fqfn." !");
// Add open PHP tag
fclose($this->pointer);
// Set rights
- if ($this->isCacheReadable()) chmod($this->fqfn, 0666);
+ if ($this->isCacheReadable()) changeMode($this->fqfn, 0666);
// Remove pointer
$this->pointer = false;