doujuyang1764 2012-09-27 06:02
浏览 29
已采纳

Magento或Zend是否缓存数据库连接字符串?

I have a Magento app running on a pretty standard Apache/Zend platform. I am pointing Magento to a new db by modifying the local.xml, however it does not seem to be honoring my changes, even after a restart of the app.

More specifically, I have db1 and db2. I am changing Magento to point to db2, however the app continues pointing to db1. As a matter of fact, I can completely shut down db2, and even though the app is pointing to db2, it doesn't care...and continues running just fine. If I shut down db1, the app fails, even though it's config has it pointing to db2.

I am hoping that it is just a caching setting somewhere in Magento or Zend that I am unaware of, but I find it odd that it persists after an app restart.

Any thoughts?

  • 写回答

1条回答 默认 最新

  • doudichu1358 2012-09-27 07:01
    关注

    Yes, the entire Magento configuration tree (of which local.xml is a part) gets cached. Use the UI in System -> Cache Management to clear the configuration cache, or manually blow away your cache storage (i.e. remove `var/cache/*')

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥15 stable diffusion
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿