在OpenCart中禁用图像缓存 [英] Disable image cache in OpenCart

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

问题描述

我目前正在开发OpenCart的iPad/平板电脑优化模板.

I am currently developing an iPad/tablet optimized template of OpenCart.

我在这里偶然发现了一个问题,我要使用的所有图像都是已缓存和调整大小的图像,在iPad模板上,我希望显示原始分辨率的图像,尤其是主图像.

I have stumbled upon a problem here, all images I am wanting to use are all cached and resized images, and on the iPad template I want the original resolution images to be displayed, especially the main image.

有没有办法让我的模板显示原始上传的图像,而不是调整大小的图像?如果有人可以指出正确的方向,我将为此开发一个vqMod(因为我仍然想在主网站上使用重新映射的图像)!

Is there a way I can get the template to show the original uploaded images instead of the resized images? If someone can point me into the right direction I will develop a vqMod for it (as I still want to use the resuzed images for the main website)!

非常感谢 彼得

推荐答案

您需要执行的方法是根据ssl状态使用HTTP_IMAGE或HTTPS_IMAGE.对于主图像,这非常简单,您基本上需要使用

The way you will need to do it is to use either HTTP_IMAGE or HTTPS_IMAGE depending on the ssl status. For the main image, it's pretty simple, you basically need to use

<?php echo HTTP_IMAGE . $product_info['image']; ?>

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

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