Skip to content

Instantly share code, notes, and snippets.

@Rajinsharwar
Created May 19, 2025 04:03
Show Gist options
  • Save Rajinsharwar/365a8b778b7d0913118c07818443d681 to your computer and use it in GitHub Desktop.
Save Rajinsharwar/365a8b778b7d0913118c07818443d681 to your computer and use it in GitHub Desktop.
<?php
$urls = [ 'https://example.com/page-1', 'https://example.com/page-2' ];
if (class_exists('LaunchWP\Main')) {
$flush = new LaunchWP\Main();
$flush->flush_launchwp_cache_for_urls( $urls );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment