You are here

function drd_server_domain_flush_cache in Drupal Remote Dashboard Server 6.2

Same name and namespace in other branches
  1. 6 drd_server.domain.inc \drd_server_domain_flush_cache()
  2. 7.2 drd_server.domain.inc \drd_server_domain_flush_cache()
  3. 7 drd_server.domain.inc \drd_server_domain_flush_cache()

DRD Server Action to flush all caches from the current domain.

Parameters

bool $redirect:

Return value

string

1 string reference to 'drd_server_domain_flush_cache'
drd_server_drd_server_actions in ./drd_server.module
Implements hook_drd_server_actions().

File

./drd_server.domain.inc, line 72

Code

function drd_server_domain_flush_cache($redirect = FALSE) {
  drupal_flush_all_caches();
  drupal_set_message('Caches cleared');
  if ($redirect) {
    drupal_goto($_SERVER['HTTP_REFERER']);
  }
  return drd_server_result('cache.flush', '');
}