+
+ echo "Clearing Database Cache : http://localhost{$this->local_base_url}/Core/RefreshDatabaseCache\n";
+
+ $response = $this->curl($url);
+
+ $json = json_decode($response, true);
+
+ if(empty($json['data']) || $json['data'] != 'DONE'){
+ echo "fetching $url\n";
+ echo "GOT:" . $response. "\n";
+ echo "Clear DataObjects Cache failed\n";
+ exit;
+ }
+
+ }
+
+
+ function clearApacheAssetCache()
+ {
+ echo "Clearing Asset Cache : http://localhost{$this->local_base_url}/Core/Asset\n";
+ $response = $this->curl(
+ "http://localhost{$this->local_base_url}/Core/Asset",
+ array( '_clear_cache' => 1 ,'returnHTML' => 'NO' ),
+ 'POST'
+ );
+ $json = json_decode($response, true);
+
+ if(empty($json['success']) || !$json['success']) {
+ echo $response. "\n";
+ echo "CURL Clear Asset cache failed\n";
+ exit;
+ }