/ Published in: PHP
This might work in Drupal 6, but I haven't tried it.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php /* * See http://drupal.org/node/152983 for details! */ // only allow site administrators to visit this page: if (!user_access('administer site configuration')) { drupal_not_found(); } else { drupal_clear_css_cache(); 'cache', 'cache_content', 'cache_filter', 'cache_menu', 'cache_page', 'cache_views', ); foreach ($tables as $table) { cache_clear_all('*', $table, TRUE); } drupal_set_message('Cache cleared.'); drupal_goto('/'); } ?>
URL: http://drupal.org/node/152983