forked from twilio/OpenVBX
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcache.php
More file actions
56 lines (50 loc) · 1.4 KB
/
Copy pathcache.php
File metadata and controls
56 lines (50 loc) · 1.4 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* -------------------------------------------------------------------
* OpenVBX Cache
* -------------------------------------------------------------------
* Define the cache settings for the OpenVBX Caches
* @see: https://github.com/twilio/OpenVBX/wiki/Object-Cache for more
* information on the caching system details
* @since: OpenVBX 1.2
*/
/**
* Enable/disable the cache system
*/
$config['cache']['cache_enabled'] = true;
/**
* Currently supported caches:
* - memory: use memory for a per-page load cache
* - apc: use APC for the memory cache
* - memcached: use memcached for the memory cache
*
* @todo auto-detect cache availability
*/
$config['cache']['cache_type'] = 'memory';
/**
* Default expiration time for cached items
* Does not effect the API Cache
*/
$config['cache']['default_expires'] = 3600;
/**
* Default Memcache Settings
* Only applicable if Memcache is in use, otherwise
* this can sefely be ignored
*/
$config['cache']['memcache'] = array(
'servers' => array(
'127.0.0.1'
),
'port' => '11211'
);
/**
*--------------------------------------------------------------------------
* Local config overrides
*--------------------------------------------------------------------------
*
* Sometimes your local environment just needs some things to be overridden
*
*/
if (is_file(APPPATH.'config/cache-local.php')) {
include_once(APPPATH.'config/cache-local.php');
}