Expand my Community achievements bar.

SOLVED

Dispatcher flush problems with /etc resources CQ 5.6

Avatar

Level 2

Hi,

I've a problem with /etc resources caching. When i try to activate a new css (through Activate Tree), i see an old file in dispatcher cache. Instead with pages activation there's no problem.

 

This is what appear in dispatcher log:

[Tue Oct 07 15:30:12 2014] [D] [24566(140633008474080)] Found farm website for lxwscms10t.test.net
[Tue Oct 07 15:30:12 2014] [D] [24566(140633008474080)] checking [/dispatcher/invalidate.cache]
[Tue Oct 07 15:30:12 2014] [I] [24566(140633008474080)] Activation detected: action=Activate [/etc/designs/project/css/screen.css]
[Tue Oct 07 15:30:12 2014] [I] [24566(140633008474080)] Touched /var/www/html/.stat
[Tue Oct 07 15:30:12 2014] [D] [24566(140633008474080)] response.headers[Server] = "Communique/2.6.3 (build 5221)"
[Tue Oct 07 15:30:12 2014] [D] [24566(140633008474080)] cache flushed
[Tue Oct 07 15:30:12 2014] [I] [24566(140633008474080)] "GET /dispatcher/invalidate.cache" 0 13 1ms

 

This is dispatcher.any configuration:

/name "cq-test"
/farms
 {
 /website
    {  
    /clientheaders
    {
    "referer"
      "user-agent"
      "authorization"
      "from"
      "content-type"
      "content-length"
      "accept-charset"
      "accept-encoding"
      "accept-language"
      "accept"
      "host"
      "if-match"
      "if-none-match"
      "if-range"
      "if-unmodified-since"
      "max-forwards"
      "proxy-authorization"
      "proxy-connection"
      "range"
      "cookie"
      "cq-action"
      "cq-handle"
      "handle"
      "action"
      "cqstats"
      "depth"
      "translate"
      "expires"
      "date"
      "dav"
      "ms-author-via"
      "if"
      "lock-token"
      "x-expected-entity-length"
      "destination"
    }
    /virtualhosts
      {
      "*"
      }
    /renders
      {
      /rend01
    {
    /hostname "lxpubcms10t.test.net"
    /port "4503"
    /timeout "600"
    }
      }
      
    /filter
      {
      
      /0001 { /type "deny" /glob "*" }
      /0002 { /type "deny" /url "/content/*" }       
      /0023 { /type "deny" /url "/cms/mockpages" }  
      /0028 { /type "allow" /url "/cms/*" }         
      /0062 { /type "allow" /url "/libs/cq/personalization/*"  }  # enable personalization
      /0081 { /type "deny"  /url "*.infinity.json" }
      /0082 { /type "deny"  /url "*.tidy.json"     }
      /0083 { /type "deny"  /url "*.sysview.xml"   }
      /0084 { /type "deny"  /url "*.docview.json"  }
      /0085 { /type "deny"  /url "*.docview.xml"  }
      /0086 { /type "deny"  /url "*.*[0-9].json" }      
      /0090 { /type "deny"  /url "*.query.json" }
      }

    /cache
      {
      /docroot "/var/www/html"
      /statfileslevel "0"
      /allowAuthorized "0"

      /rules
    {
        /0000 { /glob "*" /type "deny" }
        /0001 { /glob "*.html" /type "allow" }
        /0002 { /glob "*.css" /type "allow" }
        /0003 { /glob "*.js" /type "allow" }
        /0004 { /glob "*.jpg" /type "allow" }
        /0005 { /glob "*.png" /type "allow" }
        /0006 { /glob "*.swf" /type "allow" }
        /0007 { /glob "*.woff" /type "allow"}
        /0008 { /glob "*.svg" /type "allow" }
        /0009 { /glob "*.gif" /type "allow" }
        /0010 { /glob "*.ttf" /type "allow" }
        /0011 { /glob "*.eot" /type "allow" }
    }
        
    /invalidate
        {
         /0000  { /glob "*" /type "deny" }
         /0001  { /glob "*.html" /type "allow" }
        }
     /allowedClients
         {
          /0001 { /glob "10.3.1.165" /type "allow" }
        /0002 { /glob "172.31.18.44" /type "allow" }
       }
      }

      /health_check
        {
        /url "/content/administration/testbalancer.html"
        }
 }
}

 

Thanks

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

You should invalidate css files as well:

/invalidate
        {
         /0000  { /glob "*" /type "deny" }
         /0001  { /glob "*.html" /type "allow" }
        /0002   { /glib "*.css" /type "allow }       
        }

Regards,

Jörg

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

You should invalidate css files as well:

/invalidate
        {
         /0000  { /glob "*" /type "deny" }
         /0001  { /glob "*.html" /type "allow" }
        /0002   { /glib "*.css" /type "allow }       
        }

Regards,

Jörg