mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-14 01:06:03 +01:00
Optimize admin performance / caching
This commit is contained in:
@@ -91,9 +91,6 @@ class AdminPlugin extends Plugin
|
||||
|
||||
// Only activate admin if we're inside the admin path.
|
||||
if (substr($this->uri->route(), 0, strlen($this->base)) == $this->base) {
|
||||
// Disable system caching.
|
||||
$this->config->set('system.cache.enabled', false);
|
||||
|
||||
// Change login behavior.
|
||||
$this->config->set('plugins.login', $this->config->get('plugins.admin.login'));
|
||||
|
||||
@@ -239,10 +236,6 @@ class AdminPlugin extends Plugin
|
||||
'onTwigSiteVariables' => ['onTwigSiteVariables', 1000]
|
||||
]);
|
||||
|
||||
|
||||
// Disable system caching.
|
||||
$this->config->set('system.cache.enabled', false);
|
||||
|
||||
// Change login behavior.
|
||||
$this->config->set('plugins.login', $this->config->get('plugins.admin.login'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user