Closed seditio closed 7 months ago
[RU] Посмотри реализацию \Cache::clear() - system/cache.php:L1504 Можно сбрасывать как отдельные виды кеша, так и весь.
В простейшем случае
if (Cot::$cache) {
Cot::$cache->clear();
}
Полностью зачистить дисковый кеш, как в админке:
Cot::$cache->disk->clear(null, null);
Все ок
Functions in admin.cache.disk.php shall be moved to an external functions-file that you can include via
cot_incfile('core', 'smth');