Effect of a /statfileslevel in the Dispatcher cache | Community
Skip to main content
Level 4
April 3, 2024
Solved

Effect of a /statfileslevel in the Dispatcher cache

  • April 3, 2024
  • 2 replies
  • 805 views

Hi,

 

In my dispatcher configuration the /statfilelevel is not configured. What is the default value if we not configure the /statfileleval and what is the best practice to configure this?

Please suggest.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

Hi @beaula123 

 

The /statfileslevel “0” parameter is set by default, which means that only one stat-file located in the root of the htdocs folder is used.

 

Setting /statfileslevel

You may use the /statfileslevel properties of the dispatcher configuration file to selectively invalidate cached files according to their path. There are some rules for /statfileslevel properties mechanism:

  • The dispatcher creates .stat files in every folder, starting from docroot and up to the level you specify. The level of the docroot folder is 0.
  • When you update a file, the dispatcher finds a folder located at the statfileslevel level and invalidates all files in that folder and all files that lie below within that folder.
  • If the level of the updated file is lower than the statfileslevel, then only the files of the folder containing the updated file are disabled, but the files lying below within this folder remain valid.
  • When updating a file, all files of the corresponding folder and above up to and including the root level will become invalid.

 

Please check 

https://axamit.com/blog/adobe-experience-manager/dispatcher-clear-cache/ 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/cache-invalidation-in-aem-dispatcher-exploring-statfileslevel/td-p/617003

 

 

2 replies

Kamal_Kishor
Community Advisor
Community Advisor
April 3, 2024
arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
April 3, 2024

Hi @beaula123 

 

The /statfileslevel “0” parameter is set by default, which means that only one stat-file located in the root of the htdocs folder is used.

 

Setting /statfileslevel

You may use the /statfileslevel properties of the dispatcher configuration file to selectively invalidate cached files according to their path. There are some rules for /statfileslevel properties mechanism:

  • The dispatcher creates .stat files in every folder, starting from docroot and up to the level you specify. The level of the docroot folder is 0.
  • When you update a file, the dispatcher finds a folder located at the statfileslevel level and invalidates all files in that folder and all files that lie below within that folder.
  • If the level of the updated file is lower than the statfileslevel, then only the files of the folder containing the updated file are disabled, but the files lying below within this folder remain valid.
  • When updating a file, all files of the corresponding folder and above up to and including the root level will become invalid.

 

Please check 

https://axamit.com/blog/adobe-experience-manager/dispatcher-clear-cache/ 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/cache-invalidation-in-aem-dispatcher-exploring-statfileslevel/td-p/617003

 

 

Arun Patidar