mirror of
https://github.com/twisterarmy/cloud-server.git
synced 2025-09-09 20:31:58 +00:00
add memcache instance
This commit is contained in:
parent
50def6693b
commit
e7311b038c
@ -17,6 +17,9 @@ require(PROJECT_DIR . '/system/helper/valid.php');
|
||||
require(PROJECT_DIR . '/system/helper/format.php');
|
||||
|
||||
// Init libraries
|
||||
$_memcache = new Memcache();
|
||||
$_memcache->connect(MEMCACHE_HOST, MEMCACHE_PORT);
|
||||
|
||||
$_twister = new Twister(
|
||||
new Curl(
|
||||
TWISTER_PROTOCOL,
|
||||
|
@ -22,6 +22,10 @@ define('TWISTER_PROTOCOL', '');
|
||||
define('TWISTER_USER', '');
|
||||
define('TWISTER_PASSWORD', '');
|
||||
|
||||
// MEMCACHE
|
||||
define('MEMCACHE_HOST', 'localhost');
|
||||
define('MEMCACHE_PORT', 11211);
|
||||
|
||||
// COMMON
|
||||
define('APPLICATION_ALLOW_REGISTRATION', true);
|
||||
define('APPLICATION_FOLLOW_ON_REGISTRATION', []);
|
||||
|
Loading…
x
Reference in New Issue
Block a user