Optimizations: memcache and persistant db connections

This commit is contained in:
Latif Khalifa
2013-10-11 16:31:12 +02:00
parent a0d0d36f05
commit e8aca8283b
7 changed files with 79 additions and 6 deletions

View File

@@ -15,6 +15,8 @@ function __autoload($class)
require_once(SITE_ROOT . '/lib/' . $class . '.php');
}
Memc::init();
/* Directory relative to server root
* No leading or trailing slash.
* Example: http://www.example.com/applications/app1/
@@ -67,7 +69,7 @@ if (!$DB->connect($DB_NAME, $DB_HOST, $DB_USER, $DB_PASS)) {
die();
}
Option::init();
//Option::init();
$S = new Session();
if (!defined('NO_SESSION') && PHP_SAPI != "cli") {