PTTVDesign
Захожу иногда

Репутация: +1/-0
Offline
Сообщений: 11
interbuyer
|
 |
« : 09.12.2007, 11:44:49 » |
|
файл \includes\Cache\Lite.php примерно 553 строка
function _write($data) { $fp = @fopen($this->_file, "wb"); if ($fp) { $data = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $data);// remove comments $data = str_replace(array("\r\n", "\r", "\n", "\t", ' '), '', $data);// remove tabs, spaces, newlines, etc. $data = str_replace('{ ', '{', $data);// remove unnecessary spaces. $data = str_replace(' }', '}', $data); $data = str_replace('; ', ';', $data); $data = str_replace(', ', ',', $data); $data = str_replace(' {', '{', $data); $data = str_replace('} ', '}', $data); $data = str_replace(': ', ':', $data); $data = str_replace(' ,', ',', $data); $data = str_replace(' ;', ';', $data); $data = str_replace(';}', '}', $data); if ($this->_fileLocking) @flock($fp, LOCK_EX); if ($this->_readControl) { @fwrite($fp, $this->_hash($data, $this->_readControlType), 32); } $len = strlen($data); @fwrite($fp, $data, $len); if ($this->_fileLocking) @flock($fp, LOCK_UN); @fclose($fp); return true; } $this->raiseError('Cache_Lite : Unable to write cache !', -1); return false; } позволяет избавиться от мелкого мусора в кэш файлах
|