Title: Clearning cloudflare when clearing all cache?
Last modified: February 25, 2025

---

# Clearning cloudflare when clearing all cache?

 *  Resolved [yydevelopment](https://wordpress.org/support/users/yydevelopment/)
 * (@yydevelopment)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/clearning-cloudflare-when-clearing-all-cache/)
 * Hi, is there a way to clear to set that when litespeed clear all cache it will
   also clear cloudflare cache?
 * It seems to cause me sometimes problem when i clear the cache on the site but
   not on cloudflare and i don’t always remember to clear it.
 * If that option don’t exists do you offer some function to clear cache so i can
   add it to my code?
 * For example you have this function:
 * litespeed_purge_cache();
 * Is there something similar to clear cloudflare cache?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/clearning-cloudflare-when-clearing-all-cache/#post-18327251)
 * [@yydevelopment](https://wordpress.org/support/users/yydevelopment/) for now,
   this is not possible to make it automatically. It is going to be added in one
   of next future versions, but not all people want auto clear.
   You can manually
   clear CF cache from: Admin bar => and from dropdown choose “Purge all – Cloudflare”
 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/clearning-cloudflare-when-clearing-all-cache/#post-18327257)
 * =extra comment=
    -  This reply was modified 1 year, 3 months ago by [litetim](https://wordpress.org/support/users/litetim/).
      Reason: extra comment
 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/clearning-cloudflare-when-clearing-all-cache/#post-18327267)
 * Forgot to wrote about code: 
   from **wp-content/litespeed/src/cdn/cloudflare.cls.
   php** => you can use **_purge_all()**Thank you
 *  Thread Starter [yydevelopment](https://wordpress.org/support/users/yydevelopment/)
 * (@yydevelopment)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/clearning-cloudflare-when-clearing-all-cache/#post-18328426)
 * Thank you, appreciate your help.
 * I think it’s private function so i won’t be able to use it outsite your plugin
   with my own code.
 * Hope you will add something like that in the future.
 * Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Clearning cloudflare when clearing all cache?’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [yydevelopment](https://wordpress.org/support/users/yydevelopment/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/clearning-cloudflare-when-clearing-all-cache/#post-18328426)
 * Status: resolved