| Server IP : 130.225.57.55 / Your IP : 216.73.216.60 Web Server : Apache System : Linux wp-vhost07 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /srv/www/reco2st.eu/https/wp-content/plugins/w3-total-cache/ |
Upload File : |
<?php
/**
* File: Cdn_RackSpaceCdn_AdminActions.php
*
* @package W3TC
*/
namespace W3TC;
/**
* Class Cdn_RackSpaceCdn_AdminActions
*/
class Cdn_RackSpaceCdn_AdminActions {
/**
* Reloads the Rackspace CDN domains (CNAMEs).
*
* This method retrieves the latest Rackspace CDN domains (CNAMEs) from the CDN service and updates the configuration.
* If the domains cannot be retrieved due to an exception, an error message is displayed and the process is halted.
* On successful retrieval, the domains are saved to the configuration, and a success message is displayed.
*
* @return void
*/
public function w3tc_cdn_rackspace_cdn_domains_reload() {
$w3tc_c = Dispatcher::config();
$core = Dispatcher::component( 'Cdn_Core' );
$cdn = $core->get_cdn();
try {
// try to obtain CNAMEs.
$domains = $cdn->service_domains_get();
} catch ( \Exception $ex ) {
Util_Admin::redirect_with_custom_messages2(
array(
'errors' => array( 'Failed to obtain <acronym title="Canonical Name">CNAME</acronym>s: ' . $ex->getMessage() ),
),
true
);
return;
}
$w3tc_c->set( 'cdn.rackspace_cdn.domains', $domains );
$w3tc_c->save();
Util_Admin::redirect_with_custom_messages2(
array(
'notes' => array( 'CNAMEs are reloaded successfully' ),
),
true
);
}
}