Avoid caching in dev mode

This commit is contained in:
Clemente Raposo 2024-08-25 12:07:29 +01:00 committed by Jack Anderson
parent 9c1124972f
commit 8003add436

View file

@ -98,6 +98,12 @@ class CacheManagerHandler extends LegacyHandler implements CacheManagerInterface
public function checkForCacheUpdate($keys, $modules): void
{
global $_ENV;
if (($_ENV['APP_ENV'] ?? '') === 'dev') {
$this->cachePool->clear();
return;
}
$this->init();
global $db, $current_user;