Only invalidate cache on creating new/deleting page to speed up the recovery

This commit is contained in:
Matias Griese
2019-04-26 10:03:06 +03:00
parent f02400ad13
commit 044ab3a578
2 changed files with 3 additions and 2 deletions

View File

@@ -496,7 +496,7 @@ class AdminController extends AdminBaseController
$new_path = $path . '/' . $orderOfNewFolder . '.' . $data['folder'];
Folder::create($new_path);
Cache::clearCache('standard');
Cache::clearCache('invalidate');
$this->grav->fireEvent('onAdminAfterSaveAs', new Event(['path' => $new_path]));
@@ -2203,7 +2203,7 @@ class AdminController extends AdminBaseController
$this->grav->fireEvent('onAdminAfterDelete', new Event(['page' => $page]));
Cache::clearCache('standard');
Cache::clearCache('invalidate');
// Set redirect to pages list.
$redirect = 'pages';