/moodledata/cache/cachestore_file/default_application/core_htmlpurifier
занимают примерно 10ГБ.
При попытке почистить кеш через Администрирование->Разработка->Очистить все кэши возникает ошибка:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /home/a/altovsge/online/public_html/cache/stores/file/lib.php on line 545
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /home/a/altovsge/online/public_html/cache/stores/file/lib.php on line 545
В указанном файле такой блок:
/**
* Purges the cache definition deleting all the items within it.
*
* @return boolean True on success. False otherwise.
*/
public function purge() {
if ($this->isready) {
$files = glob($this->glob_keys_pattern(), GLOB_MARK | GLOB_NOSORT); - line 545
if (is_array($files)) {
foreach ($files as $filename) {
@unlink($filename);
}
}
$this->keys = array();
}
return true;
}
____
Можно ли решить эту проблему? Или достаточно просто удалить все папки и файлы внутри core_htmlpurifier? Не нарушит ли это работу сайта?
/**
* Purges the cache definition deleting all the items within it.
*
* @return boolean True on success. False otherwise.
*/
public function purge() {
if ($this->isready) {
$files = glob($this->glob_keys_pattern(), GLOB_MARK | GLOB_NOSORT); - line 545
if (is_array($files)) {
foreach ($files as $filename) {
@unlink($filename);
}
}
$this->keys = array();
}
return true;
}
____
Можно ли решить эту проблему? Или достаточно просто удалить все папки и файлы внутри core_htmlpurifier? Не нарушит ли это работу сайта?