| Server IP : 69.39.225.240 / Your IP : 216.73.216.138 Web Server : Apache System : Linux bronze7.serverhost.net 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : reademotions ( 1074) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/reademotions/www/wp-content/plugins/w3-total-cache/ |
Upload File : |
<?php
namespace W3TC;
class Cdn_RackSpaceCdn_AdminActions {
function w3tc_cdn_rackspace_cdn_domains_reload() {
$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;
}
$c->set( 'cdn.rackspace_cdn.domains', $domains );
$c->save();
Util_Admin::redirect_with_custom_messages2( array(
'notes' => array( 'CNAMEs are reloaded successfully' )
), true );
}
}