在OpenCart 3中禁用模板缓存以进行开发 [英] Disable template caching for development in OpenCart 3

查看:452
本文介绍了在OpenCart 3中禁用模板缓存以进行开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在OpenCart 3中更改主题模板.由于模板缓存,我每次必须在"storage/cache"目录下清除缓存.在开发过程中频繁地工作和预览更改时非常烦人.请提供一些解决方案,以便我们根据生产和开发环境配置缓存.

I am making changes in my theme templates in OpenCart 3. Due to template caching I have to clear cache every time under "storage/cache" directory. It is very annoying when working and previewing changes frequently during development. Please provide some solution how we can configure caching according to production and development environment.

注意:我已经在线搜索了解决方案,但是没有与模板缓存相关的解决方案.解决方案可以禁用图像缓存,但是图像缓存"和模板缓存"是Opencart中提供的不同功能.

Note: I have already searched for solutions online but there is no solution related to template caching. Solutions are available to disable image caching but "Image Caching" and "Template Caching" are different features provided in Opencart.

推荐答案

您可能需要升级到OpenCart3的较新版本-第一个(3.0.0.0)在GUI中没有这样做的方法.

You might need to upgrade to a more recent version of OpenCart3 - the first one (3.0.0.0) didn't have a way of doing this in the GUI.

较新的版本(例如3.0.2.0)在管理信息中心上有一个功能.单击齿轮,您将获得禁用缓存的选项.

More recent versions, such as 3.0.2.0, have a gear on the admin dashboard. Click the gear and you get options to disable caching.

这篇关于在OpenCart 3中禁用模板缓存以进行开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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