Fix cache-on-save plugin: use deleteAll() not clear()

Grav\Common\Cache has no clear() method in this version; the correct
method is deleteAll().

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-18 13:30:01 +02:00
parent fdb423d2c7
commit 8ddc1af5c0
+1 -1
View File
@@ -20,7 +20,7 @@ class CacheOnSavePlugin extends Plugin
return;
}
if ($form->getName() === 'new-entry') {
$this->grav['cache']->clear();
$this->grav['cache']->deleteAll();
}
}
}