function drd_server_domain_flush_cache in Drupal Remote Dashboard Server 7
Same name and namespace in other branches
- 6.2 drd_server.domain.inc \drd_server_domain_flush_cache()
- 6 drd_server.domain.inc \drd_server_domain_flush_cache()
- 7.2 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 60 
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();
  registry_rebuild();
  drupal_set_message('Caches cleared');
  $result = theme('status_messages');
  return drd_server_result('cache.flush', $result);
}