Skip to main content

Renamed asset does not show up when queried by tag

Comments

5 comments

  • Aditya Sharma

    Update, it appears that I was able to force the issue, by temporarily adding the same tag to a newly uploaded image. 

    While this solves my immediate problem this is hardly workable in bulk.

    0
  • Shirly Manor

    Hi Aditya,

    The list file will be cached for sometime. If you want to invalidate it from the CDN you can use the destroy call with invalidate true and than ask for it again. For example in NodeJS:

     

    ```

    cloudinary.v2.uploader.destroy('tag', {type:"list",invalidate="true"},function(error,result) {console.log(result, error) });

    ```

    Hope that helps,

    1
  • Aditya Sharma

    Can you please quantify "some time"? Are we talking minutes, hours or days?

    0
  • Stephen Doyle

    Hi Aditya,

    The JSON resource lists have a CDN cache time of about 60 seconds so typically any changes which affect the underlying content of the JSON file (e.g. you added or removed a tagged resource) will take effect in about 60 seconds

    The issue in your example is that the rename operation isn't updating the list correctly, and we have a task on our side to resolve that, but in the meantime, Shirly's suggestion of deleting the list itself (causing it to be regenerated when the cache expires) should provide a workaround

    Regards,
    Stephen

    1
  • Shirly Manor

    Hi Aditya,

    Our dev team fixed this issue and you will now get the updated list when changing the name of the image.

    Best,

    0

Post is closed for comments.