TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
▼
TYPO3 CMS
TYPO3 CMS
Test List
Todo List
Deprecated List
►
Namespace Members
►
Classes
▼
Files
►
File List
►
File Members
►
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
ApcPreset.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Install\Configuration\ExtbaseObjectCache
;
3
17
use
TYPO3\CMS\Install\Configuration
;
18
22
class
ApcPreset
extends
Configuration\AbstractPreset
{
23
27
protected
$name
=
'Apc'
;
28
32
protected
$priority
= 80;
33
37
protected
$configurationValues
= array(
38
'SYS/caching/cacheConfigurations/extbase_object'
=> array(
39
'frontend'
=>
'TYPO3\CMS\Core\Cache\Frontend\VariableFrontend'
,
40
'backend'
=>
'TYPO3\CMS\Core\Cache\Backend\ApcBackend'
,
41
'options'
=> array(
42
'defaultLifetime'
=> 0,
43
),
44
'groups'
=> array(
'system'
)
45
)
46
);
47
54
public
function
isAvailable
() {
55
$result
= FALSE;
56
if
(extension_loaded(
'apc'
)) {
57
$memoryInfo = @apc_sma_info();
58
$totalMemory = $memoryInfo[
'num_seg'
] * $memoryInfo[
'seg_size'
];
59
$availableMemory = $memoryInfo[
'avail_mem'
];
60
61
// If more than 99MB in total and more than 5MB free
62
if
($totalMemory > (99 * 1024 * 1024)
63
&& $availableMemory > (5 * 1024 * 1024)) {
64
$result
= TRUE;
65
}
66
}
67
return
$result
;
68
}
69
}
TYPO3\CMS\Install\Configuration\ExtbaseObjectCache\ApcPreset
Definition:
ApcPreset.php:22
TYPO3\CMS\Install\Configuration\ExtbaseObjectCache\ApcPreset\$priority
$priority
Definition:
ApcPreset.php:32
TYPO3\CMS\Install\Configuration\ExtbaseObjectCache\ApcPreset\isAvailable
isAvailable()
Definition:
ApcPreset.php:54
TYPO3\CMS\Install\Configuration\ExtbaseObjectCache\ApcPreset\$name
$name
Definition:
ApcPreset.php:27
TYPO3\CMS\Install\Configuration\ExtbaseObjectCache\ApcPreset\$configurationValues
$configurationValues
Definition:
ApcPreset.php:37
TYPO3\CMS\Install\Configuration\ExtbaseObjectCache
Definition:
ApcPreset.php:2
$result
if($list_of_literals) if(!empty($literals)) if(!empty($literals)) $result
Analyse literals to prepend the N char to them if their contents aren't numeric.
Definition:
adodb-mssql_n.inc.php:148
TYPO3\CMS\Install\Configuration
Definition:
AbstractCustomPreset.php:2
TYPO3\CMS\Install\Configuration\AbstractPreset
Definition:
AbstractPreset.php:22
typo3
sysext
install
Classes
Configuration
ExtbaseObjectCache
ApcPreset.php
Generated on Wed Aug 7 2019 09:52:29 for TYPO3 CMS by
1.8.13