• Hey Guest, don't forget to VOTE on each RFC topic. Your voting determine Chevereto development! No votes, no development.
  • Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

Auto clear CloudFlare cache when an Image gets deleted

Hello

I made a cron in PHP that does this job.

Cloudflare's purge directly depends on what your url looks like, in my case it's an example: https://s1.domain.com/Akd3X.jpg
That is, with the name of the encoded image.

Within my script I had to place a function to encode the image because the deleted image table does not have its code encoded.

I quickly made this script a while ago, it doesn't follow any good programming practices.

This script is not plug and play in the variables, each case must be analyzed, I recommend knowledge of PHP to be able to implement it.

Script:
 
Back
Top