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="#"/>