-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy pathObjectCache_ConfigLabels.php
36 lines (34 loc) · 1.25 KB
/
ObjectCache_ConfigLabels.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* File: ObjectCache_ConfigLabels.php
*
* @package W3TC
*/
namespace W3TC;
/**
* Class ObjectCache_ConfigLabels
*/
class ObjectCache_ConfigLabels {
/**
* Merges the provided configuration labels with default object cache labels.
*
* @param array $config_labels Array of configuration labels to be merged.
*
* @return array Merged configuration labels with default object cache labels.
*/
public function config_labels( $config_labels ) {
return array_merge(
$config_labels,
array(
'objectcache.engine' => __( 'Object Cache Method:', 'w3-total-cache' ),
'objectcache.enabled' => __( 'Object Cache:', 'w3-total-cache' ),
'objectcache.debug' => __( 'Object Cache', 'w3-total-cache' ),
'objectcache.lifetime' => __( 'Default lifetime of cache objects:', 'w3-total-cache' ),
'objectcache.file.gc' => __( 'Garbage collection interval:', 'w3-total-cache' ),
'objectcache.groups.global' => __( 'Global groups:', 'w3-total-cache' ),
'objectcache.groups.nonpersistent' => __( 'Non-persistent groups:', 'w3-total-cache' ),
'objectcache.purge.all' => __( 'Flush all cache on post, comment etc changes.', 'w3-total-cache' ),
)
);
}
}