# Path-cache of enforcing in keycloak nodejs adapter do not working

**URL:** <https://forum.keycloak.org/t/path-cache-of-enforcing-in-keycloak-nodejs-adapter-do-not-working/11252>\
**Category:** Securing applications\
**Tags:** adapter-nodejs, authentication, oidc\
**Created:** [September 30, 2021, 8:28am UTC](https://forum.keycloak.org/t/path-cache-of-enforcing-in-keycloak-nodejs-adapter-do-not-working/11252 "2021-09-30T08:28:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lytuan99](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/lytuan99/32/4010_2.png) [@lytuan99](https://forum.keycloak.org/u/lytuan99)\
**Post date:** [September 30, 2021, 8:28am UTC](https://forum.keycloak.org/t/path-cache-of-enforcing-in-keycloak-nodejs-adapter-do-not-working/11252/1 "2021-09-30T08:28:03Z")

</div>

Acctually, I didn’t see any code about caching paths with protected sources like document of keycloak said [here](https://www.keycloak.org/docs/latest/authorization_services/#_enforcer_filter).  
My services always request the keycloak server to evaluate permission. How do I cache resources with lifespan and max-entries in the keycloak-connect adapter???
