• Resolved rpf5573

    (@rpf5573)


    I think the redis plugin returns the data directly without calling the rest-api callback.

    My code is this

    register_rest_route($this->namespace, 'get-product-list', [
          'methods'             => 'GET',
          'callback'            => function(WP_REST_Request $request){
            global $wpdb;
    
            $user = wp_get_current_user();
            $user_id = $user->ID;
            ....
     ...

    When turn on the redis object cache plugin, this code is not run. But just return result of processing !

    Is it possible to turn of redis caching only at REST_API ?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Redis Cache REST_API’ is closed to new replies.