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:
@@ -20,7 +20,7 @@ class CacheOnSavePlugin extends Plugin
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ($form->getName() === 'new-entry') {
|
if ($form->getName() === 'new-entry') {
|
||||||
$this->grav['cache']->clear();
|
$this->grav['cache']->deleteAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user