Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Dispatcher Stat file not getting created according to statfileslevel and cache flush issue

swathiv54399501
Level 3
Level 3

Hi,

Dispatcher cache flush issues,

I am trying to clear cache of specific folder using HttpClient and PostMethod, if I specify full page path in cq-handle then page cache deleted, but if I give folder path cache is not getting deleted.

Stat file issue:

I am setting the statfileslevel to multiple values(0,2,3) in dispatcher.any file, but stat file not generated, is there any configuration i need to set to generate the stat file??

Thanks,

Swati

1 Accepted Solution
Jörg_Hoh
Correct answer by
Employee
Employee

Hi,

please increase the loglevel to DEBUG for the dispatcher module. It will log then in great detail, what it's doing. You might post the relevant parts of this log then.

kind regards,
Jörg

View solution in original post

3 Replies
bsloki
Community Advisor
Community Advisor

Hi Swati,

Have you configure /statfile property under your /cache configuration to generate the required statfile ?

Refer [1] for the same

[1] https://docs.adobe.com/docs/en/dispatcher/disp-config.html#Naming the Statfile

swathiv54399501
Level 3
Level 3

Yes lokesh, I referred the same doc,but nothing is getting generated.No clue where I am going wrong

 

/cache
      {
      # The docroot must be equal to the document root of the webserver. The
      # dispatcher will store files relative to this directory and subsequent
      # requests may be "declined" by the dispatcher, allowing the webserver
      # to deliver them just like static files.
      /docroot "D:/Apache2.2/htdocs"

      #/statfile  "D:/Apache2.2/htdocs/dispatcher-website.stat"

      # Sets the level upto which files named ".stat" will be created in the
      # document root of the webserver. When an activation request for some
      # page is received, only files within the same subtree are affected
      # by the invalidation.
      /statfileslevel "2"

      # Flag indicating whether to cache responses to requests that contain
      # authorization information.
      #/allowAuthorized "0"
      /allowAuthorized "1"

      # Flag indicating whether the dispatcher should serve stale content if
      # no remote server is available.
      #/serveStaleOnError "0"

Jörg_Hoh
Correct answer by
Employee
Employee

Hi,

please increase the loglevel to DEBUG for the dispatcher module. It will log then in great detail, what it's doing. You might post the relevant parts of this log then.

kind regards,
Jörg

View solution in original post