无法更改滞留在缓存中的Magento基本URL [英] Can't change Magento base URL, stuck in cache

查看:51
本文介绍了无法更改滞留在缓存中的Magento基本URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在开发域上安装了一个实时站点.我更改了core_config_data中的web/unsecure/base_urlweb/secure/base_url字段,但是我不小心拼错了新域.然后,我加载了该网站并注意到了我的错误.此后,我已纠正了拼写错误,但似乎已缓存了错误的域.我尝试重新导入数据库并更改url,删除了缓存目录中的所有内容,但js和css文件仍在管理后端的每个链接中使用了错误的域.而且管理员后端也指向错误的域.

I have just installed a live site onto a development domain. I changed the web/unsecure/base_url and web/secure/base_url fields in core_config_data but I accidentally misspelled the new domain. I then loaded the site and noticed my mistake. I've since corrected the spelling but it seems to have cached the wrong domain. I've tried re-importing the database and changing the urls, I've deleted everything in the cache directory but still the js and css files are using the wrong domain in every link in the admin back-end. And the admin back-end is pointing to the wrong domain too.

有什么建议吗?这是旧的Magento 1.3安装.

Any suggestions? It's an old Magento 1.3 install.

推荐答案

如果您对var/文件夹没有适当的权限,Magento可以将其缓存信息写入系统 文件夹.

If you don't have proper permissions on the var/ folders, Magento can write its cache information to the system /tmp folder.

这可能导致您更改了Magento数据库中的基本URL,清除了缓存(手动删除了var/cache中的所有mage- ??文件夹),(如果正在运行APC缓存,则清除了APC缓存)操作码缓存),(手动禁用了编译器(1.4.xx及更高版本)),系统仍在寻找原始站点.

This can lead to a situation where you've changed the base URLs in the Magento database, cleared cache (manual deletion of all mage-?? folders in var/cache), (cleared APC cache if you're running the op-code cache), (manually disabled the compiler (1.4.x.x and later)) and the system still looks for the original site.

大多数拥有自己的服务器的人会发现,在修复,清除和重置权限然后重新启动服务器之后,该站点神奇地开始工作.重新启动服务器后,清除/tmp的Magento缓存文件,Magento最终开始查看其自身的配置以查找其位置.

Most people who own their own server discover that the site magically starts working after fixing, clearing and resetting permissions and then rebooting the server. The server reboot clears /tmp of the Magento cache files and Magento finally starts looking at its own configuration to find where it's located.

此操作的屏幕截图...

Screen shots of this in action...

/tmp ...

并且Cache位于该目录中.注意路径-> /tmp/magento/var/cache

And the Cache living in that directory. Note the path -> /tmp/magento/var/cache

要查找放错位置的缓存目录,如果可以安装n98-magerun,请使用命令n98-magerun.phar sys:info获取基本系统信息列表,其中一项位于Cache Directory位置.

For finding that misplaced cache directory, if you can install n98-magerun, use the command n98-magerun.phar sys:info to get a basic system info listing with one item being Cache Directory location.

这篇关于无法更改滞留在缓存中的Magento基本URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆