mirror of
https://github.com/getgrav/grav.git
synced 2026-05-06 12:36:30 +02:00
@@ -3,6 +3,7 @@
|
||||
|
||||
1. [](#bugfix)
|
||||
* Deferred Extension support in Forked version of Twig 3
|
||||
* Fix for cache blowing up when upgrading from 1.7 to 1.8
|
||||
|
||||
# v1.8.0-beta.4
|
||||
## 01/27/2025
|
||||
|
||||
@@ -537,8 +537,17 @@ class Cache extends Getters
|
||||
|
||||
// Delete entries in the doctrine cache if required
|
||||
if (in_array($remove, ['all', 'standard'])) {
|
||||
$cache = Grav::instance()['cache'];
|
||||
$cache->driver->deleteAll();
|
||||
try {
|
||||
$grav = Grav::instance();
|
||||
if ($grav->offsetExists('cache')) {
|
||||
$cache = $grav['cache'];
|
||||
if (isset($cache->driver)) {
|
||||
$cache->driver->deleteAll();
|
||||
}
|
||||
}
|
||||
} catch (\Throwable $e) {
|
||||
$output[] = 'cache: ' . $e->getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
// Clearing cache event to add paths to clear
|
||||
|
||||
Reference in New Issue
Block a user