Expand my Community achievements bar.

SOLVED

Effect of a /statfileslevel in the Dispatcher cache

Avatar

Level 4

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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-...

 

 



Arun Patidar

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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-...

 

 



Arun Patidar