/**
  * tools_clear_cache function.
  * 
  * @access public
  * @return void
  */
 public function tools_clear_cache()
 {
     // First delete all the cache files
     delete_file_cache();
     // Set a success message
     $_SESSION["message"] = lang('br_tools_cache_delete');
     // Redirect to dashboard
     $this->EE->functions->redirect($this->base_url . '&method=dashboard');
 }
Example #2
0
function file_cache_delete_orphan_item_cache()
{
    $results = fetch_file_cache_item_attribute_orphans_rs();
    if ($results) {
        while ($file_cache_r = db_fetch_assoc($results)) {
            delete_file_cache($file_cache_r);
        }
        db_free_result($results);
    }
}