OpenCart 3:系统缓存清理、ocmod 和 twig.我在控制器中进行了更改,但它没有反映我在、但它、缓存、进行了

2023-09-06 23:37:38 作者:痛失吾爱

我想在产品详情页面更改与产品属性相关的内容:/index.php?route=product/product&product_id=100

I want to change something related to product attributes in the product details page: /index.php?route=product/product&product_id=100

所以我改变了catalogcontrollerproductproduct.php 文件并保存.

So I changed catalogcontrollerproductproduct.php file and saved it.

但即使我删除了缓存并刷新了页面,它也没有反映我的更改,但它不起作用.即使我删除了 PHP 文件中的整个代码.但这并没有反映我的变化

but it's not reflecting my changes even I removed the cache and refreshed the page but it's not working. Even I removed the whole code in the PHP file. But it's not reflecting my changes

推荐答案

如果您使用的是 OpenCart 3 - 它可能是 ocmod 缓存或 twig 缓存.

If you are using OpenCart 3 - it might be ocmod cache or twig cache.

要清除管理仪表板中的树枝缓存,请单击右上角的齿轮按钮,然后清除主题缓存.

To clear twig cache in your admin dashboard click on the gear button on top right corner, and then clear the Theme cache.

要清除管理面板中的 ocmod 缓存,请转到 Extensions - Modifications 并单击右上角的重新加载按钮.

To clear ocmod cache in admin panel go to Extensions - Modifications and click reload button in top right corner.