drupal clear caches


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. <?php
  2. // save to drupal root directory
  3.  
  4. require_once './includes/bootstrap.inc';
  5. drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
  6. drupal_flush_all_caches();
  7. drupal_set_message('Cache cleared');
  8. drupal_goto();
  9.  
  10. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.