Hi,
Using register_rest_route, I have set the following permission_callback on my custom route : 'permission_callback' => [$this, 'checkAPIAccess'.
The first time I call my route, the permission_callback is executed. Once the route is cached, the response is sent without checking my permission_callback function.
Thanks.