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/*')

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

报告相同问题?

悬赏问题

  • ¥100 需要跳转番茄畅听app的adb命令
  • ¥50 寻找一位有逆向游戏盾sdk 应用程序经验的技术
  • ¥15 请问有用MZmine处理 “Waters SYNAPT G2-Si QTOF质谱仪在MSE模式下采集的非靶向数据” 的分析教程吗
  • ¥50 opencv4nodejs 如何安装
  • ¥15 adb push异常 adb: error: 1409-byte write failed: Invalid argument
  • ¥15 nginx反向代理获取ip,java获取真实ip
  • ¥15 eda:门禁系统设计
  • ¥50 如何使用js去调用vscode-js-debugger的方法去调试网页
  • ¥15 376.1电表主站通信协议下发指令全被否认问题
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证