Aksela Disallow Cache Path Add
Please note that in our new cloud panel, Zones are named as CDN Resources. (Zone ID = CDN Resource ID)
With this API, you can add the pages that are not cached in Aksela.
Parameters
Return Values
Example PHP Code
<?php $curl_post_data = array('user_key' => 'Your User Key','user_secret' =>'Your User Secret','zone_id' => zoneid,'disallow_cache_paths' => 'Your Path'); $request_body = json_encode($curl_post_data);$service_url = 'https://api.medianova.com/v1/zone/aksela/disallow_cache_path_add';$ch = curl_init($service_url);curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, $request_body); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json','Content-Length: ' . strlen($request_body))); $response = curl_exec($ch);var_dump($response);?>
Example Output
{ "status": true, "data": ["/yourPaths"], "opid": "576UWnEydPJfXAYB"}