Hi @aem101
/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.
The below blog has explained it very crisp and clear
https://www.axamit.com/blog/adobe/dispatcher-4
https://www.aemrules.com/2020/04/dispactherhacks-statfile.html
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/what-is-the-best-approach-to-add-statefileslevels-in-dispatcher/m-p/427743
Note: The recommendation is too keep the stat file level lower and not at root 0 depending upon your content structure to make sure you are not invalidating a lot of content.
On the strategies please looks at the community post , it has all the considerations.
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-blogs/deep-dive-into-aem-dispatcher-s-cache-flush-strategies/ba-p/615142
https://experienceleague.adobe.com/docs/experience-cloud-kcs/kbarticles/KA-17458.html?lang=en