Title: delete cache from 3rd party php script
Last modified: August 22, 2016

---

# delete cache from 3rd party php script

 *  Resolved [dhmdhm](https://wordpress.org/support/users/dhmdhm/)
 * (@dhmdhm)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/delete-cache-from-3rd-party-php-script/)
 * Hi,
 * I want to trigger a cache purge from a random php script, but it’s not working.
 * In short, the script looks like this:
 * <?PHP
    include_once ‘/var/www-wp/wp-load.php’; if ( has_action(‘cachify_flush_cache’)){
   do_action(‘cachify_flush_cache’); } ?>
 * I’ve also tried to call some methods directly like Cachify::remove_page_cache_by_url
   but to no avail. I use Memcached.
 * Can you tell me what I need to do? Thank you very much.!
 * [https://wordpress.org/plugins/cachify/](https://wordpress.org/plugins/cachify/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [dhmdhm](https://wordpress.org/support/users/dhmdhm/)
 * (@dhmdhm)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/delete-cache-from-3rd-party-php-script/#post-5530492)
 * sorry never mind, had to disable the server_software = nginx check since script
   
   runs from shell.

Viewing 1 replies (of 1 total)

The topic ‘delete cache from 3rd party php script’ is closed to new replies.

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

 * 1 reply
 * 1 participant
 * Last reply from: [dhmdhm](https://wordpress.org/support/users/dhmdhm/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/delete-cache-from-3rd-party-php-script/#post-5530492)
 * Status: resolved