• now the Rest Api is in the WordPress core hopefully we will see more plugins like this with options for each Rest endpoint url.

    Good work!

Viewing 1 replies (of 1 total)
  • Plugin Author airesvsg

    (@airesvsg)

    Hi @mofistudio,
    Thanks for using my plugin ??

    If you want skip cache for a determined endpoint url, you can use the filter ‘rest_cache_skip‘:

    How to use:

    add_filter( 'rest_cache_skip', function( $skip, $request_uri ) {
        if ( ! $skip && false !== stripos( 'wp-json/acf/v2', $request_uri ) ) {
            return true;
        }
    
        return $skip;
    }, 10, 2 );

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Very useful plugin’ is closed to new replies.