ProCacheTests::urlCacheTest() method

Test URL for non-cached vs. cached performance

Returns verbose array of timer data

Usage

// basic usage
$array = $tests->urlCacheTest(string $url);

// usage with all arguments
$array = $tests->urlCacheTest(string $url, int $testNum = 1);

Arguments

NameType(s)Description
$urlstring

URL to test

$testNum (optional)int

Iteration number, if running multiple times Default:1

Return value

array

Returns verbose associative array with results of timers and test data


$tests methods and properties

API reference based on ProcessWire core version 3.0.252