mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-03 14:20:43 +01:00
clear cache on page delete
This commit is contained in:
@@ -980,6 +980,8 @@ class AdminController
|
||||
$page = $this->admin->page();
|
||||
Folder::delete($page->path());
|
||||
|
||||
$results = Cache::clearCache('standard');
|
||||
|
||||
// Set redirect to either referrer or pages list.
|
||||
$redirect = $uri->referrer();
|
||||
if ($redirect == $uri->route()) {
|
||||
|
||||
Reference in New Issue
Block a user