Title: wfCache::clearPageCache();
Last modified: November 29, 2016

---

# wfCache::clearPageCache();

 *  Resolved [roger_burkhard](https://wordpress.org/support/users/roger_burkhard/)
 * (@roger_burkhard)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/wfcacheclearpagecache/)
 * Hi,
 * I used to clear the Cache with Cronjobs with the function: wfCache::clearPageCache();
   
   Is there any alternative?
 * Thanks!

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

 *  Plugin Contributor [cjhaas](https://wordpress.org/support/users/chrisvendiadvertisingcom/)
 * (@chrisvendiadvertisingcom)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/wfcacheclearpagecache/#post-8493372)
 * Hi Roger,
 * We’ll be adding that in very soon! Unfortunately do to namespace conflicts the
   function’s name will change so you’ll need to update your code. I’m hoping that
   Wordfence will keep that static method around and call a global `do_action()`
   instead that I can hook into but that would be on Wordfence’s side to do that.
 * Thanks,
    Chris
 *  Thread Starter [roger_burkhard](https://wordpress.org/support/users/roger_burkhard/)
 * (@roger_burkhard)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/wfcacheclearpagecache/#post-8493481)
 * Okay, thanks for your quick response! I don’t care about the functions name as
   long as a function exist to clear the cache.
 *  Plugin Contributor [cjhaas](https://wordpress.org/support/users/chrisvendiadvertisingcom/)
 * (@chrisvendiadvertisingcom)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/wfcacheclearpagecache/#post-8608032)
 * Hi Roger,
 * We just released version 1.2.0 that has this feature as part of the public API.
   You can now clear the cache via the static method:
 * `\Vendi\Cache\api::clear_entire_cache()`
 * Thanks,
    Chris
 *  [Robswaimea](https://wordpress.org/support/users/robswaimea/)
 * (@robswaimea)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/wfcacheclearpagecache/#post-8621580)
 * I just discovered (yesterday) that the Falcon Engine had disappeared.. and most
   grateful to discover your work thanks !
 * And as luck would have it ! you had just added the Clear Cache to the plugin,
   as the OP had mentioned, I also use a cron job, or manual call via a url if when
   needed.
 * For those people that need info on how to do this…
    create a file called (or 
   whatever you want) clearcache.php and put in your WP directory.
 *     ```
       <?php
       date_default_timezone_set("America/New_York");
   
       include 'wp-load.php';
       \Vendi\Cache\api::clear_entire_cache();
   
       echo "Cache Cleared<br>";
       echo "The time is " . date("m-d-Y  h:i:sa");
   
       ?>
       ```
   
 * and thusly call it manually or in a cron.
 * Thanks for your work.
    R.

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

The topic ‘wfCache::clearPageCache();’ is closed to new replies.

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

 * 4 replies
 * 3 participants
 * Last reply from: [Robswaimea](https://wordpress.org/support/users/robswaimea/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/wfcacheclearpagecache/#post-8621580)
 * Status: resolved