Skip to content

Commit 0cba995

Browse files
committed
Merge pull request #89 from FPar/patch-1
Removed redundant if clause in getAutoClass()
2 parents 2e1a2cc + 6564a58 commit 0cba995

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

phpfastcache/3.0.0/phpfastcache.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,7 @@ public static function getAutoClass($config) {
112112
$path = self::getPath(false,$config);
113113
if(is_writeable($path)) {
114114
$driver = "files";
115-
}else if(extension_loaded('pdo_sqlite') && is_writeable($path)) {
116-
$driver = "sqlite";
117-
}else if(extension_loaded('apc') && ini_get('apc.enabled') && strpos(PHP_SAPI,"CGI") === false)
118-
{
115+
}else if(extension_loaded('apc') && ini_get('apc.enabled') && strpos(PHP_SAPI,"CGI") === false) {
119116
$driver = "apc";
120117
}else if(class_exists("memcached")) {
121118
$driver = "memcached";

0 commit comments

Comments
 (0)