Dispatcher statfileslevel and Cache flush mechanism
Hi Community Experts,
Recently while going through the dispatcher flush mechanism, I felt for our scenario the OOTB mechanism is not completely suitable. Please correct me, if my understanding is wrong.
My understanding (After doing an end to end setup):
- Whenever any file is getting activated from author to publisher instance, dispatcher flush agent will be called and this will create/touch a zero kb file named as ".stat" under the webserver's docroot.
- The above said stat file will be created/touched under as many as levels based on the value specified against statfileslevel.
- When any page is being requested via dispatcher from a browser, then the requested page's time stamp will be compared against the stat file's time stamp. If the stat file is latest, then the request will be served from publisher. Else the cached version will be sent as a response.
Our scenario:
As per our business requirement, we have a listing page as well as detail pages. For instance please find the below paths:
- /content/my-project/en/home
- /content/my-project/en/home/article-listing
- /content/my-project/en/home/article-listing/article-detail-1
- /content/my-project/en/home/article-listing/article-detail-2
- ...
- /content/my-project/en/home/article-listing/article-detail-50
For the above structure, when author activates any one of the article-detail page, then the cache flush is happening for all the detail page, ideally which is not required. For an update in 1 page, 49 other page's cache is also getting flushed upon request, even when there are no changes happened to those 49 pages (as the stat file to be compared is located at the same level).
Is there any specific statfileslevel value which I can tweak to avoid the above behavior? Else am I missing anything?
Thanks!
Dinesh kumar L.

