Articles on: Developers

Add or remove URLs to auto purge

FlyingPress automatically purge necessary pages when you publish, update, or delete content.

To customize this list of URLs use the flying_press_auto_purge_urls filter:

add_filter('flying_press_auto_purge_urls', function ($urls, $post_id) {
    $urls[] = 'https://example.com/your-page/';
    return $urls;
}, 10, 2);

Updated on: 18/12/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!