Expand my Community achievements bar.

Cache Invalidate in incorrect Domain

Avatar

Level 1

Hi Guys

We do have two AEM infras for two sites(I will get them As Site G and Site B) But both sites share one Dispatcher.

we are in a situation where when we update the site B content in its Author we can see Dispacher is updating the incorrect stat file location (Site G doc root ).

Please find the error s and configurations below

Site G Doc root :/docroot "/aem_dispatcher/data/Site_B"

Site B Doc root : /docroot "/aem_dispatcher/data/Site_G"

When we update content on Site B

[Wed Jun 27 12:59:51 2018] [I] [pid 13404 (tid 140359707346688)] Activation detected: action=Activate [/content/Site_B/en/homepage/customers/bank]

[Wed Jun 27 12:59:51 2018] [I] [pid 13404 (tid 140359707346688)] Touched /aem_dispatcher/data/Site_G/.stat

[Wed Jun 27 12:59:51 2018] [I] [pid 13404 (tid 140359707346688)] Touched /aem_dispatcher/data/Site_G/content/.stat

Please note Site_B and Site_G have totally Separated Author and Publisher Instances

AEM 6.3 SP1

Dispacher 4.2.3.so in apache 2.4

My Dispatcher file

*****************************************************

/farms

  {

  /Site_B

    {

    /virtualhosts

      {

      "www.ref.Site_B.com"

      }

    /renders

      {

      /DB_BTI_Publisher

        {

        /hostname "yy.yy.yyy.y"

        /port "53051"

        /timeout "300"

        }

    /cache

      {

      /docroot "/aem_dispatcher/data/Site_B"

      /statfileslevel "2"

      /allowAuthorized "0"

        /rules

        {

        /0000

          {

          /glob "*"

          /type "allow"

          }

          /0001 { /glob "/sitemap/Sitemap_en.xml" /type "deny" } #disable caching for sitemap 

          /0002 { /glob "/sitemap/Sitemap_master.xml" /type "deny" } #disable caching for sitemap

      }

    /invalidate

        {

        /0000

          {

          /glob "*"

          /type "allow"

          }

        /0001

          {

          # Consider all HTML files stale after an activation.

          /glob "*.html"

          /type "allow"

          }

        /0002

          {

          /glob "/etc/segmentation.segment.js"

          /type "allow"

          }

        /0003

          {

          /glob "*/analytics.sitecatalyst.js"

          /type "allow"

          }

        }

      }

      }

    }

  /Site_G

    {

    /virtualhosts

      {

      "www.ref.Site_G.com"

      }

    /renders

      {

      /DY_GSP_Publisher

        {

        /hostname "xx.xx.xxx.x"

        /port "53051"

        /timeout "300"

        }

      }

/cache

      {

      /docroot "/aem_dispatcher/data/Site_G"

      /statfileslevel "2"

      /allowAuthorized "0"

      #/serveStaleOnError "0"

      /rules

        {

        /0000

          {

          /glob "*"

          /type "allow"

          }

        /0001

          {

          /glob "/libs/granite/dispatcher/content/vanityUrls.html"

          /type "deny"

          }

        }

     /invalidate

        {

        /0000

          {

          /glob "*"

          /type "deny"

          }

        /0001

          {

          # Consider all HTML files stale after an activation.

          /glob "*.html"

          /type "allow"

          }

        /0002

          {

          /glob "/etc/segmentation.segment.js"

          /type "allow"

          }

        /0003

          {

          /glob "*/analytics.sitecatalyst.js"

          /type "allow"

          }

        }

      /allowedClients

        {

        }

      }

    }

}

*********************************************

0 Replies