Clearing Drupal's cache
Last modified: February 5, 2009 - 05:20
This snippet clears out Drupal's cache.
You may need to do this after moving your site from one host to another, for example. Also useful when you install new modules or generally troubleshoot things. It is relatively harmless. Your site might slow down a bit afterwards while the cache fills back up. You will never lose irretrievable data with this query. Use it as needed.
<?php
db_query("DELETE FROM {cache};");
?>Devel
The devel module makes it easy to clear Drupal's cache. Just install the devel module and enable the developer block for easy access to cache clearing.
