mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 07:22:11 +00:00
set memcached server if php has support for it
This commit is contained in:
parent
2d6c0eea9e
commit
f195525793
|
@ -54,12 +54,14 @@ if(isset($GLOBALS['SEEDDMS_HOOKS']['initStorage'])) {
|
|||
}
|
||||
}
|
||||
|
||||
if($storage) {
|
||||
$dms = new SeedDMS_Core_DMS($db, $storage);
|
||||
} else {
|
||||
// $storage = new SeedDMS_Core_Storage_File($settings->_contentDir.$settings->_contentOffsetDir);
|
||||
// $dms = new SeedDMS_Core_DMS($db, $storage);
|
||||
$dms = new SeedDMS_Core_DMS($db, $settings->_contentDir.$settings->_contentOffsetDir);
|
||||
$dms = new SeedDMS_Core_DMS($db, $storage ? $storage : $settings->_contentDir.$settings->_contentOffsetDir);
|
||||
|
||||
if(extension_loaded('memcached')) {
|
||||
$memcache = new Memcached('seeddms');
|
||||
$memcache->addServers(array(
|
||||
array('localhost',11211),
|
||||
));
|
||||
$dms->setMemcache($memcache);
|
||||
}
|
||||
|
||||
if(!$settings->_doNotCheckDBVersion && !$dms->checkVersion()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user