PHP code example of a7 / wpe-cache-flush

1. Go to this page and download the library: Download a7/wpe-cache-flush library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

a7 / wpe-cache-flush example snippets


define( 'WPE_CACHE_FLUSH', $private_key );

add_filter( '\A7\WPE_Cache_Flush\wpe_cache_flush_token', function() {
  return $private_key;
} );

putenv( 'WPE_CACHE_FLUSH=' . $private_key );

\A7\WPE_Cache_Flush\cache_flush()