File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
phpfastcache/3.0.0/drivers Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -16,21 +16,22 @@ class phpfastcache_predis extends BasePhpFastCache implements phpfastcache_drive
16
16
17
17
function checkdriver () {
18
18
// Check memcache
19
+ if (! class_exists ("\\Predis \\Client " )) {
19
20
$ this ->required_extension ("predis-1.0/autoload.php " );
20
21
try {
21
22
Predis \Autoloader::register ();
22
23
} catch (Exception $ e ) {
23
24
24
25
}
25
- return true ;
26
+ }
27
+ return true ;
26
28
}
27
29
28
30
function __construct ($ config = array ()) {
29
31
$ this ->setup ($ config );
32
+ if (! class_exists ("\\Predis \\Client " )) {
30
33
$ this ->required_extension ("predis-1.0/autoload.php " );
31
-
32
-
33
-
34
+ }
34
35
}
35
36
36
37
function connectServer () {
@@ -164,4 +165,4 @@ function driver_isExisting($keyword) {
164
165
165
166
166
167
167
- }
168
+ }
You can’t perform that action at this time.
0 commit comments