HEX
Server: Apache
System: Linux p3plzcpnl504902.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: nhqyemt2u0zd (3690907)
PHP: 7.2.34
Disabled: NONE
Upload Files
File: /home/nhqyemt2u0zd/www/wp-content/plugins/w3-total-cache/Cdn_RackSpaceCdn_AdminActions.php
<?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 );
	}
}