Articles on: Developers

Add or remove URLs to auto purge

FlyingPress automatically updates its cache of URLs to be purged whenever you publish, update, or delete content. However, if you want to add or remove specific URLs from this list, you can do so using the appropriate filters.

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

Updated on: 23/11/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!