? cache_clear.patch
Index: services/system_service/system_service.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/services/services/system_service/Attic/system_service.inc,v
retrieving revision 1.1.2.4
diff -u -p -r1.1.2.4 system_service.inc
--- services/system_service/system_service.inc	12 Jan 2009 06:59:01 -0000	1.1.2.4
+++ services/system_service/system_service.inc	7 Mar 2009 20:52:37 -0000
@@ -1,5 +1,5 @@
 <?php
-// $Id: system_service.inc,v 1.1.2.4 2009/01/12 06:59:01 marcingy Exp $
+// $Id: system_service.inc,v 1.1.2.2 2008/09/01 12:54:08 brmassa Exp $
 /**
  * @author Services Dev Team
  * @file
@@ -78,4 +78,12 @@ function system_service_module_exists($m
  */
 function system_service_getservices() {
   return services_get_all();
-}
\ No newline at end of file
+}
+
+/**
+ * Clear all caches
+ */
+function system_service_cache_clear_all() {
+  drupal_flush_all_caches();
+  watchdog('cache clear service', 'caches cleared');
+}
Index: services/system_service/system_service.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/services/services/system_service/Attic/system_service.module,v
retrieving revision 1.3.2.17
diff -u -p -r1.3.2.17 system_service.module
--- services/system_service/system_service.module	12 Jan 2009 06:34:50 -0000	1.3.2.17
+++ services/system_service/system_service.module	7 Mar 2009 20:52:37 -0000
@@ -1,5 +1,5 @@
 <?php
-// $Id: system_service.module,v 1.3.2.17 2009/01/12 06:34:50 marcingy Exp $
+// $Id: system_service.module,v 1.3.2.16 2008/09/06 04:13:08 marcingy Exp $
 /**
  * @author Services Dev Team
  * @file
@@ -22,7 +22,7 @@ function system_service_help($path, $arg
  * Implementation of hook_perm().
  */
 function system_service_perm() {
-  return array('send mail from remote', 'get variable from remote', 'set variable from remote', 'check module exists from remote');
+  return array('send mail from remote', 'get variable from remote', 'set variable from remote', 'check module exists from remote', 'clear cache from remote');
 }
 
 /**
@@ -139,14 +139,25 @@ function system_service_service() {
       '#return'   => 'string',
       '#help'     => t('Check if a module is enabled. If so, return its version.')),
     
-    // system.getServices
-    array(
-      '#method'   => 'system.getServices',
-      '#callback' => 'system_service_getservices',
-      '#access arguments' => array('get available services'),
-      '#file'             => array('file' => 'inc', 'module' => 'system_service'),
-      '#return'   => 'struct',
-      '#help'     => t('Returns an object containing all the available services.')
-    ),
+      // system.getServices
+      array(
+        '#method'   => 'system.getServices',
+        '#callback' => 'system_service_getservices',
+        '#access arguments' => array('get available services'),
+        '#file'             => array('file' => 'inc', 'module' => 'system_service'),
+        '#return'   => 'struct',
+        '#help'     => t('Returns an object containing all the available services.')
+      ),
+
+      // system.cacheClearAll
+      array(
+        '#method'   => 'system.cacheClearAll',
+        '#callback' => 'system_service_cache_clear_all',
+        '#access arguments' => array('clear cache from remote'),
+        '#file'     => array('file' => 'inc', 'module' => 'system_service'),
+        '#args'     => array(),
+        '#return'   => 'bool',
+        '#help'     => t('Clear cache on remote site.'),
+      ),
   );
 }
