Title: Clearing cache with php code
Last modified: August 30, 2023

---

# Clearing cache with php code

 *  [saintdo](https://wordpress.org/support/users/saintdo/)
 * (@saintdo)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/clearing-cache-with-php-code/)
 * Is it possible to clear OMGF via php code? Currently I am running multiple websites
   using OMGF and sometimes has the caching problem which caused fonts won’t display
   properly. So it would be great if I can run code snippet to clear cache.
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/clearing-cache-with-php-code/#post-17040786)
 * Hi!
 * Just curious; what kind of caching issues are you running into? And how does 
   emptying the cache resolve that?
 * To answer your question: how are you planning to execute the code snippet? From
   within your terminal, or through a plugin, or…?

Viewing 1 replies (of 1 total)

The topic ‘Clearing cache with php code’ is closed to new replies.

 * ![](https://ps.w.org/host-webfonts-local/assets/icon-256x256.png?rev=3300821)
 * [OMGF | GDPR/DSGVO Compliant, Faster Google Fonts. Easy.](https://wordpress.org/plugins/host-webfonts-local/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/host-webfonts-local/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/host-webfonts-local/)
 * [Active Topics](https://wordpress.org/support/plugin/host-webfonts-local/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/host-webfonts-local/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/host-webfonts-local/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/clearing-cache-with-php-code/#post-17040786)
 * Status: not a support question