invalidate_cache( Filesystem_Utils::DELETE_ALL ); } /** * Delete cache for homepage and paged archives. */ function jetpack_boost_delete_cache_for_home() { $boost_cache = new Boost_Cache(); $boost_cache->invalidate_cache_for_front_page( Filesystem_Utils::DELETE_ALL ); } /** * Delete cache for a specific URL. * * @param string $url - The URL to delete the cache for. */ function jetpack_boost_delete_cache_for_url( $url ) { $boost_cache = new Boost_Cache(); $boost_cache->invalidate_cache_for_url( $url, Filesystem_Utils::DELETE_ALL ); } /** * Delete cache for a specific post. * * @param int $post_id - The ID of the post to delete the cache for. */ function jetpack_boost_delete_cache_by_post_id( $post_id ) { $boost_cache = new Boost_Cache(); $boost_cache->invalidate_cache_by_post_id( (int) $post_id, Filesystem_Utils::DELETE_ALL ); }