AamAadmiParty / india-standalone-drupal

A drupal based website that currently powers http://aamaadmiparty.org/, the "main" site. It is different from other AAP websites in drupal for primarily large scale email sending capabilities, among many other small things. (This website is a contender for merging with 'regional-domainsite-drupal' reposiroty when the latter is ready)
GNU General Public License v2.0
0 stars 1 forks source link

Better caching setup for for AAP drupal sites #45

Closed sumeetpareek closed 11 years ago

sumeetpareek commented 11 years ago
tkuldeep commented 11 years ago

Steps for clearing varnish cache in both web servers I have sent mail. as here underscore is not coming.

tkuldeep commented 11 years ago

Question asked by Ankur:

  1. What if I want to clear the home page?
  2. What if I want to clear the URL : http://www.aamaadmiparty.org/news/statement-on-pds-scam-in-delhi ? Do I enter the path as news/statement-on-pds-scam-in-delhi ?
tkuldeep commented 11 years ago
  1. For cache clear of home page:
    shell_exec("sh {$_SERVER['DOCUMENT_ROOT']}/scripts/varnish_cache_clear.sh");
  2. Yes you are right, for cache clear of URL http://www.aamaadmiparty.org/news/statement-on-pds-scam-in-delhi . You will write
    shell_exec("sh {$_SERVER['DOCUMENT_ROOT']}/scripts/varnish_cache_clear.sh news/statement-on-pds-scam-in-delhi");