blob: 06fe5af6c5868412ef2a0cce97be49202bc75381 (
plain)
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
57
58
59
60
61
62
63
64
65
66
|
<?php
/* ADVANCED OPTIMIZATION ///////////////////////////////////////////////////////
* -----------------------------------------------------------------------------
*
* APP_CACHE defines the cache-driver;
* accepted values are the name of the Cache-interface impementations (the exact
* names of the classes)
*
* 'FileCache' : caching in filesystem; fair if caching on HDD; great on SSD
* 'RedisCache' : caching in Redis server; generally recommended if available
* 'MemCachedCache' : caching in Memcached server; recommended if available
*
* NOTE: FileCache on a NVMe SDD is the fastest option;
* Redis and Memcached are really-fast caching options and are available for
* scaling horizontaly your application (eache one has it's own strngths;
* study, then choose the one that fulfills your needs;
* -----------------------------------------------------------------------------
*/
define('CACHE_DRIVER', $env['CACHE_DRIVER'] ?? 'FileCache');
/** HOTFIX: (needs refactoring) */
// CONNECTIONS ...
define('FILECACHE_PATH', APP_ROOT.'/storage/cache/'); // if CACHE_DRIVER is set to 'FileCache'
define('MEDIA_STORAGE_ROOT', APP_ROOT.'/storage/uploads/'); // Media files root directory
# define('REDIS_HOST', '127.0.0.1'); // if CACHE_DRIVER is set to 'RedisCache'
# define('MEMCAHCED_SERVER', '127.0.0.1'); // if CACHE_DRIVER is set to 'MemCached'
/** CREDENTIALS
* -----------------------------------------------------------------------------
*/
|