Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用库 phpthumb 在个人项目中动态调整图像大小。我让用户能够修改他们上传的图像并旋转它。我需要清除特定图像的 phpthumb 缓存。我怎样才能做到这一点?
提前致谢 ;)
好的,我终于找到了,为了刷新图像的缓存,我们可以像这样添加一个哈希参数:
<img src="/uploads/phpThumb.php?src=/uploads/photo/myimage.jpg&w=250&ar=x&hash=<?php echo time(); ?>" alt="#"/>