@@ 27-50 (lines=24) @@ | ||
24 | /** |
|
25 | * __construct() |
|
26 | */ |
|
27 | public function __construct() |
|
28 | { |
|
29 | if ( |
|
30 | \PHP_SAPI !== 'cli' |
|
31 | && |
|
32 | \function_exists('apc_store') === true |
|
33 | && |
|
34 | \ini_get('apc.enabled') |
|
35 | ) { |
|
36 | $this->installed = true; |
|
37 | } |
|
38 | ||
39 | if ( |
|
40 | \PHP_SAPI === 'cli' |
|
41 | && |
|
42 | \function_exists('apc_store') === true |
|
43 | && |
|
44 | \ini_get('apc.enable_cli') |
|
45 | ) { |
|
46 | \ini_set('apc.use_request_time', '0'); |
|
47 | ||
48 | $this->installed = true; |
|
49 | } |
|
50 | } |
|
51 | ||
52 | /** |
|
53 | * Check if apc-cache exists. |
@@ 27-50 (lines=24) @@ | ||
24 | /** |
|
25 | * __construct() |
|
26 | */ |
|
27 | public function __construct() |
|
28 | { |
|
29 | if ( |
|
30 | \PHP_SAPI !== 'cli' |
|
31 | && |
|
32 | \function_exists('apcu_store') === true |
|
33 | && |
|
34 | \ini_get('apc.enabled') |
|
35 | ) { |
|
36 | $this->installed = true; |
|
37 | } |
|
38 | ||
39 | if ( |
|
40 | \PHP_SAPI === 'cli' |
|
41 | && |
|
42 | \function_exists('apcu_store') === true |
|
43 | && |
|
44 | \ini_get('apc.enable_cli') |
|
45 | ) { |
|
46 | \ini_set('apc.use_request_time', '0'); |
|
47 | ||
48 | $this->installed = true; |
|
49 | } |
|
50 | } |
|
51 | ||
52 | /** |
|
53 | * Check if apcu-cache exists. |