function eurotrip_menu() { $items = array(); //this is added for this current tutorial. $items[] = array( 'path' => 'clear_all_caches', 'title' => t('CLEAR!!!'), 'callback' => 'eurotrip_clear_all_caches', 'access' => user_access('access content'), 'type' => MENU_CALLBACK ); return $items; } function eurotrip_clear_all_caches() { //cache_clear_all(); //print "Finished!!!"; echo "This page runs a script that clears the main cache. "; db_query("DELETE FROM {cache}"); db_query("DELETE FROM {cache_filter}"); db_query("DELETE FROM {cache_menu}"); db_query("DELETE FROM {cache_page}"); echo "It's clear now. "; }