File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 18
18
],
19
19
"require" : {
20
20
"php" : " >=5.3.0" ,
21
- "doctrine/cache" : " ~1.4 " ,
21
+ "doctrine/cache" : " ~1.6 " ,
22
22
"mouf/utils.constants.debug" : " ~1.0" ,
23
23
"mouf/utils.constants.secret" : " ~1.0" ,
24
24
"mouf/utils.cache.cache-interface" : " ~2.0"
38
38
"logo" : " logo.png"
39
39
}
40
40
}
41
- }
41
+ }
Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ public static function install(MoufManager $moufManager) {
28
28
$driver = new \\Doctrine \\Common \\Cache \\ArrayCache();
29
29
} else {
30
30
// If APC is available, let \'s use APC
31
- if (extension_loaded("apc")) {
31
+ if (extension_loaded("apcu")) {
32
+ $driver = new \\Doctrine \\Common \\Cache \\ApcuCache();
33
+ } else if (extension_loaded("apc")) {
32
34
$driver = new \\Doctrine \\Common \\Cache \\ApcCache();
33
35
} else {
34
36
$driver = new \\Doctrine \\Common \\Cache \\FileCache(sys_get_temp_dir(). \'/doctrinecache \');
You can’t perform that action at this time.
0 commit comments