недавно начал замечать ошибки в журнале, некоторые порешал а вот некоторые не могу понять что требуется :(
2013-09-06 9:33:05 - PHP Warning: unlink(/home/rassol/****.com.ua/www/system/cache/cache.product.total.1.0.1.87d906024529addbc14deffa8d55e267.1378452769) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in /home/rassol/***.com.ua/www/system/library/cache.php on line 45
Вот содержимое cache.php on line 45
}
public function set($key, $value) {
$this->delete($key);
$file = DIR_CACHE . 'cache.' . preg_replace('/[^A-Z0-9\._-]/i', '', $key) . '.' . (time() + $this->expire);
$handle = fopen($file, 'w');
fwrite($handle, serialize($value));
fclose($handle);
}
public function delete($key) {
$files = glob(DIR_CACHE . 'cache.' . preg_replace('/[^A-Z0-9\._-]/i', '', $key) . '.*');
if ($files) {
foreach ($files as $file) {
if (file_exists($file)) {
unlink($file);
}
}
}
}
}
?>
Выделил 45 строку. тобиш вот - unlink($file); буду признателен если поможете