$procache->allowCDN() method

Is CDN active/allowed for current page/request/user?

Usage

// basic usage
$bool = $procache->allowCDN();

// usage with all arguments
$bool = $procache->allowCDN($page = null);

Arguments

NameType(s)Description
page (optional)Page, null, bool

Omit for current Page, specify Page, or specify boolean to force allow/disallow

Return value

bool


$procache methods and properties

API reference based on ProcessWire core version 3.0.244

“…building with ProcessWire was a breeze, I really love all the flexibility the system provides. I can’t imagine using any other CMS in the future.” —Thomas Aull