Dispatcher not caching pages | Community
Skip to main content
Level 2
June 5, 2023
Solved

Dispatcher not caching pages

  • June 5, 2023
  • 1 reply
  • 2269 views

I have setup dispatcher in my local but the pages I viewed are not getting cached inside htdocs.I changed docroot location to htddocs and made necessary changes in dispatcher.any file also but still not able to cache pages.

I can see the pages accessed in access.log file but under docroot the pages are not getting cached.

 

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 EstebanBustamante

Switch the dispatcher log to DEBUG level, then hit a page and check the dispatcher.log.

The log will clearly tell you why your pages are not being cached (why the files are not created in that directory), I suspect you could have some permission issue with the folder where the cache files are trying to be created. 

1 reply

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
June 5, 2023

Switch the dispatcher log to DEBUG level, then hit a page and check the dispatcher.log.

The log will clearly tell you why your pages are not being cached (why the files are not created in that directory), I suspect you could have some permission issue with the folder where the cache files are trying to be created. 

Esteban Bustamante
Level 2
June 7, 2023

I changed the log to debug log but after hitting the page nothing is showing in the debug log.

docroot folder is inside documents so it has permission to created folders and files.

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
June 7, 2023

Did you restart Apache after changing the log level? If you are not seeing extra information in the logs means your configuration didn't take place.d 

You should see something like this: (Be aware that the log you need to check is dispatcher.log file)

 

[Tue Oct 10 17:14:44 2017] [D] [pid 25214 (tid 139728858846976)] Found farm publishfarm for host.com [Tue Oct 10 17:14:44 2017] [D] [pid 25214 (tid 139728858846976)] checking [/crx/de] [Tue Oct 10 17:14:44 2017] [D] [pid 25214 (tid 139728858846976)] request URL has no extension: /crx/de [Tue Oct 10 17:14:44 2017] [D] [pid 25214 (tid 139728858846976)] cache-action for [/crx/de]: NONE [Tue Oct 10 17:14:44 2017] [D] [pid 25214 (tid 139728858846976)] Filter rejects: GET /crx/de HTTP/1.1 [Tue Oct 10 17:14:44 2017] [I] [pid 25214 (tid 139728858846976)] "GET /crx/de" - - 1ms [publishfarm/-]

 

For more details see; https://blogs.perficient.com/2017/10/12/mastering-aem-dispatcher-part-1-debugging-the-dispatcher/

Esteban Bustamante