XxUnkn0wnxX
Active member
Hi, i recently installed and configured Memcached,
this was my current config for frontend caching:
but since i started using memcached:
i get this error when i load my page:
i did also disable all plugins with $config['enableListeners'] = false;
and i have about 50+ pages full errors:
page loads fine without front end caching, any way to make it work with both? + even when i disable memcached front end cache only works with:
if i try to use the array method it fails
this was my current config for frontend caching:
Code:
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array(
'caching' => true,
'automatic_serialization' => true,
'lifetime' => 10800,
'cache_id_prefix' => 'xf');
but since i started using memcached:
Code:
$config['cache']['backend'] = 'Memcached';
$config['cache']['backendOptions'] = array(
'compression' => false,
'servers' => array(
array(
// your memcached server IP /address
'host' => '127.0.0.1',
// memcached port
'port' => 11211,
'weight' => 1,
)
)
);
i get this error when i load my page:
Code:
An exception occurred: The memcache extension must be loaded for using this backend ! in /home/Admin/public_html/forums/library/Zend/Cache.php on line 209
Zend_Cache::throwException() in Zend/Cache/Backend/Memcached.php at line 123
Zend_Cache_Backend_Memcached->__construct() in Zend/Cache.php at line 153
Zend_Cache::_makeBackend() in Zend/Cache.php at line 94
Zend_Cache::factory() in XenForo/Application.php at line 763
XenForo_Application->loadCache() in XenForo/Application.php at line 973
XenForo_Application->lazyLoad() in XenForo/Application.php at line 1004
XenForo_Application::get() in XenForo/Application.php at line 1672
XenForo_Application::getCache() in XenForo/Model.php at line 146
XenForo_Model->_getCache() in XenForo/Model/DataRegistry.php at line 81
XenForo_Model_DataRegistry->getMulti() in XenForo/Dependencies/Abstract.php at line 147
XenForo_Dependencies_Abstract->preLoadData() in XenForo/FrontController.php at line 127
XenForo_FrontController->run() in /home/Admin/public_html/forums/admin.php at line 13
i did also disable all plugins with $config['enableListeners'] = false;
and i have about 50+ pages full errors:
Code:
Zend_Cache_Exception: The memcache extension must be loaded for using this backend ! - library/Zend/Cache.php:209
Generated By: Unknown Account, 6 minutes ago
Stack Trace
#0 /home/Admin/public_html/forums/library/Zend/Cache/Backend/Memcached.php(123): Zend_Cache::throwException('The memcache ex...')
#1 /home/Admin/public_html/forums/library/Zend/Cache.php(153): Zend_Cache_Backend_Memcached->__construct(Array)
#2 /home/Admin/public_html/forums/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Memcached', Array, false, false)
#3 /home/Admin/public_html/forums/library/XenForo/Application.php(763): Zend_Cache::factory('Core', 'Memcached', Array, Array)
#4 /home/Admin/public_html/forums/library/XenForo/Application.php(973): XenForo_Application->loadCache(Object(Zend_Config))
#5 /home/Admin/public_html/forums/library/XenForo/Application.php(1004): XenForo_Application->lazyLoad('cache', NULL)
#6 /home/Admin/public_html/forums/library/XenForo/Application.php(1672): XenForo_Application::get('cache')
#7 /home/Admin/public_html/forums/library/XenForo/Model.php(146): XenForo_Application::getCache()
#8 /home/Admin/public_html/forums/library/XenForo/Model/DataRegistry.php(81): XenForo_Model->_getCache(true)
#9 /home/Admin/public_html/forums/library/XenForo/Dependencies/Abstract.php(147): XenForo_Model_DataRegistry->getMulti(Array)
#10 /home/Admin/public_html/forums/library/XenForo/FrontController.php(127): XenForo_Dependencies_Abstract->preLoadData()
#11 /home/Admin/public_html/forums/index.php(13): XenForo_FrontController->run()
#12 {main}
Request State
array(3) {
["url"] => string(53) "https://portalcentric.net/forums/index.php?liveupdate"
["_GET"] => array(1) {
["liveupdate"] => string(0) ""
}
["_POST"] => array(4) {
["_xfRequestUri"] => string(40) "/forums/search/984952/?q=dlc&o=relevance"
["_xfNoRedirect"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}
page loads fine without front end caching, any way to make it work with both? + even when i disable memcached front end cache only works with:
Code:
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
if i try to use the array method it fails