TwistPHP Documentation

storePageCache

File path: dist/twist/Core/Utilities/Route.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

storePageCacheStore a page into the page cache, use a unique page key so that the page can be found again later when required.

Parameters

Name Type Description
$strPageCacheKeystringn/a
$strPageDatastringn/a
[$intCacheTime = 3600]integern/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strPageCacheKey 'foo';
$strPageData 'foo';
$intCacheTime 3600;

//Call the function storePageCache with the example vars
Twist::Route() -> storePageCache($strPageCacheKey$strPageData$intCacheTime);