Skip to content

Commit 9fe6210

Browse files
committed
feat(core): update code base for new Flextype 0.9.9 - next round
1 parent 0d94735 commit 9fe6210

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/Controllers/PluginsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function pluginStatusProcess(Request $request, Response $response) : Resp
8080
Filesystem::write($custom_plugin_settings_file, $this->yaml->encode($custom_plugin_settings_file_data));
8181

8282
// Clear doctrine cache
83-
$this->cache->clear('doctrine');
83+
$this->cache->purge('doctrine');
8484

8585
// Redirect to plugins index page
8686
return $response->withRedirect($this->router->pathFor('admin.plugins.index'));

app/Controllers/ToolsController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ public function clearCacheProcess(Request $request, Response $response) : Respon
165165
{
166166
$id = $request->getParsedBody()['cache-id'];
167167

168-
$this->cache->clear('doctrine');
169-
$this->cache->clear('preflight');
168+
$this->cache->purge('doctrine');
169+
$this->cache->purge('preflight');
170170

171171
$this->flash->addMessage('success', __('admin_message_cache_files_deleted'));
172172

@@ -181,7 +181,7 @@ public function clearCacheProcess(Request $request, Response $response) : Respon
181181
*/
182182
public function clearCacheAllProcess(Request $request, Response $response) : Response
183183
{
184-
$this->cache->clearAll();
184+
$this->cache->purgeAll();
185185

186186
$this->flash->addMessage('success', __('admin_message_cache_files_deleted'));
187187

0 commit comments

Comments
 (0)