You are here

function drd_server_domain_flush_cache in Drupal Remote Dashboard Server 6

Same name and namespace in other branches
  1. 6.2 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()
1 string reference to 'drd_server_domain_flush_cache'
drd_server_xmlrpc in ./drd_server.module
Implementation of hook_xmlrpc().

File

./drd_server.domain.inc, line 46

Code

function drd_server_domain_flush_cache($sid) {
  $user = drd_server_load_user($sid);
  if (is_string($user)) {
    return drd_server_error($user);
  }
  drupal_flush_all_caches();
  drupal_set_message('Caches cleared');
  $result = theme('status_messages');
  return drd_server_result('cache.flush', $result);
}