mirror of
https://github.com/twisterarmy/cloud-server.git
synced 2025-09-10 12:51:56 +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');
|
require(PROJECT_DIR . '/system/helper/format.php');
|
||||||
|
|
||||||
// Init libraries
|
// Init libraries
|
||||||
|
$_memcache = new Memcache();
|
||||||
|
$_memcache->connect(MEMCACHE_HOST, MEMCACHE_PORT);
|
||||||
|
|
||||||
$_twister = new Twister(
|
$_twister = new Twister(
|
||||||
new Curl(
|
new Curl(
|
||||||
TWISTER_PROTOCOL,
|
TWISTER_PROTOCOL,
|
||||||
|
@ -22,6 +22,10 @@ define('TWISTER_PROTOCOL', '');
|
|||||||
define('TWISTER_USER', '');
|
define('TWISTER_USER', '');
|
||||||
define('TWISTER_PASSWORD', '');
|
define('TWISTER_PASSWORD', '');
|
||||||
|
|
||||||
|
// MEMCACHE
|
||||||
|
define('MEMCACHE_HOST', 'localhost');
|
||||||
|
define('MEMCACHE_PORT', 11211);
|
||||||
|
|
||||||
// COMMON
|
// COMMON
|
||||||
define('APPLICATION_ALLOW_REGISTRATION', true);
|
define('APPLICATION_ALLOW_REGISTRATION', true);
|
||||||
define('APPLICATION_FOLLOW_ON_REGISTRATION', []);
|
define('APPLICATION_FOLLOW_ON_REGISTRATION', []);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user