Skip to content

Instantly share code, notes, and snippets.

@robdecker
Last active November 11, 2020 01:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save robdecker/9080950 to your computer and use it in GitHub Desktop.
Save robdecker/9080950 to your computer and use it in GitHub Desktop.
[Clear all caches from a php file] #d7
<?php
define('DRUPAL_ROOT', getcwd());
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
drupal_flush_all_caches();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment