Mai fidarsi di un computer che non è possibile gettare dalla finestra.

— Steve Wozniak

Clear Cache

  • user warning: Table './stenoweb/node_comment_statistics' is marked as crashed and should be repaired query: SELECT last_comment_timestamp, last_comment_name, comment_count FROM node_comment_statistics WHERE nid = 193 in /home/stenoweb/public_html/modules/comment/comment.module on line 596.
  • user warning: Table './stenoweb/node_comment_statistics' is marked as crashed and should be repaired query: SELECT last_comment_timestamp, last_comment_name, comment_count FROM node_comment_statistics WHERE nid = 22 in /home/stenoweb/public_html/modules/comment/comment.module on line 596.
  • user warning: Table './stenoweb/node_comment_statistics' is marked as crashed and should be repaired query: SELECT comment_count FROM node_comment_statistics WHERE nid = 22 in /home/stenoweb/public_html/modules/comment/comment.module on line 1121.

<?php
/*

  • 2008 Jun 26

*

  • The code submitted by dharmanerd in his comment probably
  • works better than the original I had, so I've modified this
  • to match his code.

*

  • The original code for this was shamelessly yanked from
  • `devel.module`; it was the function `devel_cache_clear()`.

*
*/

// only allow site administrators to visit this page:
if (!user_access('administer site configuration')) {
drupal_not_found();
}else {
drupal_clear_css_cache();
$tables = array(
'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();
}

?>