magehost / magehost_rewritefix
MageHost_RewriteFix:解决了大多数Magento 1.x店铺面临的问题:不断增长的巨大URL重写表。
1.6.1
2019-09-26 09:28 UTC
Suggests
- magento-hackathon/magento-composer-installer: Makes it possible to manage this package as a dependency
This package is auto-updated.
Last update: 2024-08-26 20:02:56 UTC
README
很抱歉,我们无法为此扩展提供客户支持,并且它免费提供“原样”。我们在许多大型商店中使用它,并且效果良好。
由于Magento中的错误,一旦重写URL以-[数字]结尾,您将获得更多和更多的重写URL到同一个目标。数字越来越高。索引速度越来越慢。
此扩展是针对此问题的解决方案。需要Magento 1.7.0.2或更高版本。
如何使用Modman (--copy)安装
- 确保您正在运行Magento 1.7或更高版本
- 安装 Modman
cd
到您的Magento根目录test -d .modman || modman init
modman clone --copy --force https://github.com/magehost/magehost_rewritefix
- 如果您使用Git保存您的Magento代码:将
.modman
添加到您的.gitignore
- 运行一次
php shell/mh_rewrite_cleanup.php -- cleanup
- 重新索引
catalog_url
索引
如有必要进行验证
您可以通过此查询(假设没有数据库前缀)来验证您的安装是否存在此问题。如果最大的计数大于商店视图的数量,则这是一个错误的提示。
SELECT `id_path`, COUNT(*) as `total` FROM `core_url_rewrite` GROUP BY `id_path` ORDER BY `total` DESC
为了进行更深入的调查,您可以使用以下查询检查计数最高的行 SELECT * FROM `core_url_rewrite` WHERE `id_path`='[id_path from previous query]'
每个商店视图应该为每个id_path有一个条目 - 并且没有更多 -除非您自己重命名了产品URI。