我已经尝试在 magento 企业中安装使用 memcached 的快速缓存和整页缓存。第一个通过编辑 local.xml 文件,后者通过编辑 enterprise.xml 文件。
每次我更改其中一个并将其提交到站点时,HTTP 请求都会正常运行,并且数据会添加到 memcached 系统(使用 memcache-top 进行检查)但是 HTTPs 一些 HTTPS 功能似乎不起作用,例如日志记录进入管理员。特别是仪表板似乎永远无法正常工作。
这是来自 magento/var/report 的转储:
a:5:{i:0;s:85:"Unknown number format type 'boolean'. Format '' must be a valid number format string.";i:1;s:3529:"#0 /var/www/magento/lib/Zend/Locale/Format.php(305): Zend_Locale_Format::_checkOptions(Array)
#1 /var/www/magento/lib/Zend/Currency.php(186): Zend_Locale_Format::toNumber('133.370000', Array)
#2 /var/www/magento/app/code/core/Mage/Directory/Model/Currency.php(233): Zend_Currency->toCurrency('133.370000', Array)
#3 /var/www/magento/app/code/core/Mage/Directory/Model/Currency.php(216): Mage_Directory_Model_Currency->formatTxt('133.37000000', Array)
#4 /var/www/magento/app/code/core/Mage/Directory/Model/Currency.php(197): Mage_Directory_Model_Currency->formatPrecision('133.37000000', 2, Array, true, false)
#5 /var/www/magento/app/code/core/Mage/Adminhtml/Block/Dashboard/Bar.php(82): Mage_Directory_Model_Currency->format('133.37000000')
#6 /var/www/magento/app/code/core/Mage/Adminhtml/Block/Dashboard/Bar.php(62): Mage_Adminhtml_Block_Dashboard_Bar->format('133.37000000')
#7 /var/www/magento/app/code/core/Mage/Adminhtml/Block/Dashboard/Totals.php(74): Mage_Adminhtml_Block_Dashboard_Bar->addTotal('Revenue', '133.37000000')
#8 /var/www/magento/app/code/core/Mage/Core/Block/Abstract.php(238): Mage_Adminhtml_Block_Dashboard_Totals->_prepareLayout()
#9 /var/www/magento/app/code/core/Mage/Core/Model/Layout.php(430): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#10 /var/www/magento/app/code/core/Mage/Adminhtml/Block/Dashboard.php(50): Mage_Core_Model_Layout->createBlock('adminhtml/dashb...')
#11 /var/www/magento/app/code/core/Mage/Core/Block/Abstract.php(238): Mage_Adminhtml_Block_Dashboard->_prepareLayout()
#12 /var/www/magento/app/code/core/Mage/Core/Model/Layout.php(430): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#13 /var/www/magento/app/code/core/Mage/Core/Model/Layout.php(446): Mage_Core_Model_Layout->createBlock('adminhtml/dashb...', 'dashboard')
#14 /var/www/magento/app/code/core/Mage/Core/Model/Layout.php(238): Mage_Core_Model_Layout->addBlock('adminhtml/dashb...', 'dashboard')
#15 /var/www/magento/app/code/core/Mage/Core/Model/Layout.php(204): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#16 /var/www/magento/app/code/core/Mage/Core/Model/Layout.php(209): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#17 /var/www/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(345): Mage_Core_Model_Layout->generateBlocks()
#18 /var/www/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(270): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#19 /var/www/magento/app/code/core/Mage/Adminhtml/Controller/Action.php(263): Mage_Core_Controller_Varien_Action->loadLayout(NULL, true, true)
#20 /var/www/magento/app/code/core/Mage/Adminhtml/controllers/DashboardController.php(40): Mage_Adminhtml_Controller_Action->loadLayout()
#21 /var/www/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(420): Mage_Adminhtml_DashboardController->indexAction()
#22 /var/www/magento/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#23 /var/www/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#24 /var/www/magento/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->dispatch()
#25 /var/www/magento/app/Mage.php(640): Mage_Core_Model_App->run(Array)
#26 /var/www/magento/index.php(80): Mage::run('', 'store')
#27 {main}";s:3:"url";s:102:"/index.php/admin/dashboard/index/key/<<author's_note:this_was_a_hash>>/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:5:"admin";}
是否有使用 magento 打开 memcached 的特殊程序?我读过的指南没有提到任何特别的东西,但后来我看到了一些像这里的东西:http: //www.magentocommerce.com/boards/viewthread/230185/#t386967
他们提到在我恢复当前的 local.xml 之后关闭所有缓存等。FWIW 后,我所做的一切都不会让网站再次恢复。转储缓存,重新启动 apache 等。我必须更改上面的代码以启动站点,然后再恢复它。
这是正常的magento行为吗?