mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-04 10:14:13 +08:00
Avoid caching in dev mode
This commit is contained in:
parent
9c1124972f
commit
8003add436
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue