Expand my Community achievements bar.

Dispatcher Cache Root in Local

Avatar

Level 3

I am running the dispatcher using docker on my local Windows machine. Can anyone tell me where can I find the cache folder? I need to change some cache rules and check whether it is being applied successfully or not. 

Also how to change this cache root in local ?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

9 Replies

Avatar

Community Advisor

@Ankan_Ghosh 

 

 

  • Cache :
    • defined by: /docroot property in farm file
    • default location for AEMaaCS SDK’s docker image: /mnt/var/www/html

 

The following blog covers multiple important aspects around dispatcher set-up via docker

https://techrevel.blog/2023/08/28/navigating-aem-dispatcher-setup-farm-file-resolution-and-variable-...


Aanchal Sikka

Avatar

Level 3

Thanks for the reply. But where is this mnt/var/www/html being created in the local directory?

How do I check the files that are cached? 

Avatar

Community Advisor

@Ankan_Ghosh 

 

Option-1:

I don't have a docker locally, so sharing the screenshots from internet.

- Go to Images

- Click on the vertical ellipses corresponding to your image. 

- Select "Open in terminal". You should be able to access logs at /mnt/var/www/html 

aanchalsikka_0-1711632387861.png

 

 

Option-2: To access via power shell.

https://www.youtube.com/watch?v=o5ycGE2bGIg

 

 


Aanchal Sikka

Avatar

Level 3

Tried to access the file from the terminal but seems like nothing is in it

Ankan_Ghosh_0-1711640736203.png

Please correct me if I am doing anything wrong.

Avatar

Community Advisor

@Ankan_Ghosh 

- Please check the /docroot value defined in farm file.

- PLease enable debug mode in the logs and check the cache logs

Define DISP_LOG_LEVEL debug

 

How a detailed cache log should look like is available here: Deep-dive into AEM dispatcher’s cache flush strategies – Adobe Experience Manager Blog (techrevel.bl...

 


Aanchal Sikka

Avatar

Community Advisor

Hi @Ankan_Ghosh 
It will be inside the dispatcher sdk folder, if you are using AEM as a cloud SDK

Screenshot 2024-03-28 at 14.23.32.png

 

 

 



Arun Patidar

Avatar

Level 3

I am on a Windows Machine and the cache folder is not being generated inside the Dispatcher Folder. Content is being served but I am not able to see how things are being cached. My main motive is to understand how things are cached and in what order. 

Ankan_Ghosh_1-1711640250873.png

 

Avatar

Community Advisor

Hi @Ankan_Ghosh 
Maybe the cache is not working as expected, please check your configurations.
As @aanchal-sikka  mentioned, you would be able to see the cache from terminal which opens within container.



Arun Patidar

Avatar

Level 1

Hi @Ankan_Ghosh Were you able to resolve the issue, as I am also facing the same issue?