I recently needed to know if a ProcessWire site was using a CDN or not. CDNs in ProcessWire are typically managed via the excellent ProCache module. As with most things ProcessWire, the solution was very simple:
$cdnOn = wire('modules')->get('ProCache')->allowCDN();
Tim Bennett is a Leeds-based web designer from Yorkshire. He has a First Class Honours degree in Computing from
Leeds Metropolitan University and currently runs his own one-man web design company, Texelate.