How can I add latest version number using cl_image_tag?
I would like to know how can I get latest version number and add it to img tag like,
"version"=>"latest version number here"
I just want to update CDN cache every time I overwrite the image.
When uploading a resource, our upload API returns back data which among other properties, includes the resource's version number.
You may save the version number (in a datastore) and use it as part of the cl_image_tag. This will make sure that you always use the latest resource version. More information can be found at http://cloudinary.com/documentation/upload_images#image_versions
Thank you for your answer.
Currently I have several issues. The biggest one is when I try to include the php files to my Wordpress, it says
Cannot redeclare class Cloudinary in /home/users/0/lolipop.jp-ateliersasaki/web/wp-content/themes/sasaki-theme/Cloudinary.php on line 2
And then I did
to avoid this error. I would like to know how can I fix this first.
Hi, did you try to search your code for another occurrences of this line?
If there is no such redundancy, then could you please try to follow the steps described on the next KB article and see if it helps?
I look forward to hear of your progress.
Post is closed for comments.