Filters

Filters

ew_content_container_cache_query

A filter that allows you to define queries used by content containers for the page, the filter is run in context of the page. It expects an array of queries (strings) to be returned.

ew_cache_invalidator_custom_queries

Add custom queries to be added to the plugin query data, allows users to add any queries for any urls. Example:

add_filter('ew_cache_invalidator_custom_queries', function($arr) {
    $arr[] = [ 'contenttype:Article AND Example:Value', 'https://www.example.com/example/' ];
    return $arr;
});

Actions

ew_cache_invalidator_invalidate_url

Invalidates a url.

do_action('ew_cache_invalidator_invalidate_url', 'https://www.example.com/example/')

ew_cache_invalidator_invalidate_post

Invalidates a post. Valid parameters are post id or WP_Post.

do_action('ew_cache_invalidator_invalidate_post', $post)

Last updated