mirror of
https://github.com/getgrav/grav.git
synced 2026-02-28 01:21:30 +01:00
Clearing cache now deletes all clockwork files
This commit is contained in:
@@ -5,6 +5,9 @@
|
||||
* Added `ControllerResponseTrait::createDownloadResponse()` method
|
||||
1. [](#improved)
|
||||
* Optimized `Flex Pages` for speed
|
||||
* Clearing cache now deletes all clockwork files
|
||||
1. [](#bugfix)
|
||||
* Fixed clockwork error when clearing cache
|
||||
|
||||
# v1.7.7
|
||||
## 02/23/2021
|
||||
|
||||
@@ -71,6 +71,7 @@ class Cache extends Getters
|
||||
'cache://twig/',
|
||||
'cache://doctrine/',
|
||||
'cache://compiled/',
|
||||
'cache://clockwork/',
|
||||
'cache://validated-',
|
||||
'cache://images',
|
||||
'asset://',
|
||||
@@ -80,6 +81,7 @@ class Cache extends Getters
|
||||
'cache://twig/',
|
||||
'cache://doctrine/',
|
||||
'cache://compiled/',
|
||||
'cache://clockwork/',
|
||||
'cache://validated-',
|
||||
'asset://',
|
||||
];
|
||||
@@ -311,7 +313,7 @@ class Cache extends Getters
|
||||
if ($password && !$redis->auth($password)) {
|
||||
throw new \RedisException('Redis authentication failed');
|
||||
}
|
||||
|
||||
|
||||
// Select alternate ( !=0 ) database ID if set
|
||||
if ($databaseId && !$redis->select($databaseId)) {
|
||||
throw new \RedisException('Could not select alternate Redis database ID');
|
||||
@@ -498,7 +500,7 @@ class Cache extends Getters
|
||||
$anything = true;
|
||||
}
|
||||
} elseif (is_dir($file)) {
|
||||
if (Folder::delete($file)) {
|
||||
if (Folder::delete($file, false)) {
|
||||
$anything = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user