function akamai_manual_purge_form in Akamai 7.3
Form builder for manually purging Akamai.
See also
akamai_manual_purge_form_submit()
1 string reference to 'akamai_manual_purge_form'
- akamai_menu in ./
akamai.module - Implements hook_menu().
File
- ./
akamai.admin.inc, line 322 - Administrative pages for the Akamai module.
Code
function akamai_manual_purge_form() {
$form = array();
$form['paths'] = array(
'#type' => 'textarea',
'#title' => t('Paths/URLs'),
'#description' => t('Enter one URL per line. Wildcards are not currently supported by v2 or v3 of the CCU REST API. URL entries should be relative to the basepath. (e.g. node/1, content/pretty-title, sites/default/files/some/image.png)'),
);
$form['domain_override'] = array(
'#type' => 'select',
'#title' => t('Network'),
'#default_value' => variable_get('akamai_network', CcuClientInterface::NETWORK_PRODUCTION),
'#options' => array(
CcuClientInterface::NETWORK_STAGING => t('Staging'),
CcuClientInterface::NETWORK_PRODUCTION => t('Production'),
),
'#description' => t('The Akamai network to use for cache purging. Defaults to the Domain setting from the settings page.'),
);
$form['purge_action'] = array(
'#type' => 'radios',
'#title' => t('Purge action'),
'#default_value' => variable_get('akamai_action', ''),
'#options' => array(
'remove' => t('Remove'),
'invalidate' => t('Invalidate'),
),
'#description' => t('<b>Remove:</b> Purge the content from Akamai edge server caches. The next time the edge server receives a request for the content, it will retrieve the current version from the origin server. If it cannot retrieve a current version, it will follow instructions in your edge server configuration.<br/><br/><b>Invalidate:</b> Mark the cached content as invalid. The next time the Akamai edge server receives a request for the content, it will send an HTTP conditional get (If-Modified-Since) request to the origin. If the content has changed, the origin server will return a full fresh copy; otherwise, the origin normally will respond that the content has not changed, and Akamai can serve the already-cached content.<br/><br/><b>Note that <em>Remove</em> can increase the load on the origin more than <em>Invalidate</em>.</b> With <em>Invalidate</em>, objects are not removed from cache and full objects are not retrieved from the origin unless they are newer than the cached versions.'),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Start Purging Content'),
);
return $form;
}