Skip to content

Commit 3c8367c

Browse files
committed
Re-enabled CacheManager warning
1 parent 4f37c09 commit 3c8367c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/phpFastCache/CacheManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ public static function getInstance($driver = 'auto', $config = [])
8989
$class = self::getNamespacePath() . $driver . '\Driver';
9090
self::$instances[ $instance ] = new $class($config);
9191
} else {
92-
// trigger_error('[' . $driver . '] Calling CacheManager::getInstance for already instanced drivers is a bad practice and have a significant impact on performances.
93-
// See https://github.com/PHPSocialNetwork/phpfastcache/wiki/[V5]-Why-calling-getInstance%28%29-each-time-is-a-bad-practice-%3F');
92+
trigger_error('[' . $driver . '] Calling CacheManager::getInstance for already instanced drivers is a bad practice and have a significant impact on performances.
93+
See https://github.com/PHPSocialNetwork/phpfastcache/wiki/[V5]-Why-calling-getInstance%28%29-each-time-is-a-bad-practice-%3F');
9494
}
9595

9696
return self::$instances[ $instance ];

0 commit comments

Comments
 (0)