Return to Snippet

Revision: 13033
at July 21, 2009 21:30 by terrencewood


Updated Code
<?php
// save to drupal root directory

require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
drupal_flush_all_caches();
drupal_set_message('Cache cleared');
drupal_goto();

?>

Revision: 13032
at April 6, 2009 00:35 by terrencewood


Initial Code
<?php
// save to drupal root directory

require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_ALL);
drupal_flush_all_caches();
drupal_set_message('Cache cleared');
drupal_goto();

?>

Initial URL

                                

Initial Description
Script to clear all Drupal caches from a url  (it's bookmarkable)

Initial Title
drupal clear caches

Initial Tags
drupal

Initial Language
PHP