Clear cached node pages at node creation

Events happening in the community are now at Drupal community events on www.drupal.org.
elkin_taharon's picture

Hi,

Maybe this is a silly question, but i just realized that the varnish module is clearing all my varnish cached objects instead just the ones affected at node creation ( the front page if it promoted, the node's taxonomy, etc), is this a normal behavior ?

There is a way for remove just the affected pages ?

Comments

Expire Module

Hi mikeytown2, I'm already

elkin_taharon's picture

Hi mikeytown2,

I'm already using the expire module:

configuration:

Expire front page = check
Expire node term pages= check
Expire menus: family = check
Expire CCK node references = check
Include base URL in expires = check

Something miss ?

Thanks in advance,

Elkin.

Status page

mikeytown2's picture

what does the status page say?

There is a setting in varnish called "Varnish Cache Clearing" set it to none.

Varnish Cache Clearing =

elkin_taharon's picture

Varnish Cache Clearing = check to none

But now, the taxonomy page is not cleared. I have to wait till the max-age get to 8600 or it should clear the cache once the new node is published ?

any help?

More info needed

mikeytown2's picture

I need a more descriptive bug report in short.

In the code I get the term ID (tid) and get the path for it

<?php
  $term
= taxonomy_get_term($tid);
 
$paths['term' . $tid] = taxonomy_term_path($term);
?>

in most cases the path ends up as taxonomy/term/5
What other urls need to be flushed in your case? (this will get the path alias as well)

Hi Dude, this are the paths

elkin_taharon's picture

Hi Dude, this are the paths and aliases for to taxonomies pages.

path= "taxonomy/term/106"
alias = "/empleos/oferta-empleos/conductores"

path= "taxonomy/term/66"
alias = "/finca-raíz/arriendos/apartamentos"

Is this useful ?

regards,

Elkin.

created a bug report

header information : Request

elkin_taharon's picture

header information :

Request URL:http://192.168.10.236:6081/pressflow/finca-ra%C3%ADz/arriendos/pensiones
Request Method:GET
Status Code:200 OK
Request Headers
Accept:application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,/;q=0.5
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:max-age=0
Connection:keep-alive
Cookie:cert_Origin=directo
Host:192.168.10.236:6081
If-Modified-Since:Fri, 11 Feb 2011 20:23:05 +0000
If-None-Match:"1297455785"
Referer:http://192.168.10.236:6081/pressflow/
User-Agent:Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.94 Safari/534.13
Response Headers
Age:25
Cache-Control:max-age=8600
Connection:keep-alive
Content-Length:40242
Content-Type:text/html; charset=utf-8
Date:Fri, 11 Feb 2011 20:23:30 GMT
ETag:"1297455785"
Expires:Sun, 11 Mar 1984 12:00:00 GMT
Last-Modified:Fri, 11 Feb 2011 20:23:05 +0000
Server:Apache/2.2.8 (CentOS)
Vary:Cookie
Via:1.1 varnish
X-Powered-By:PHP/5.2.10
X-Varnish:1339172162 1339172134

Then, when a node is save in other term, the cache object is cleared for all nodes in all terms.