Skip to content

Kirby 5.0.4

$page->isCacheable()

Checks if the page can be cached in the pages cache. This will also check if one of the ignore rules from the config kick in.

$page->isCacheable(Kirby\Content\VersionId|null $versionId = null): bool

Parameters

Name Type Default
$versionId Kirby\Content\VersionIdornull null

Return type

bool

This method modifies the existing $page object it is applied to and returns it again.

Parent class

Kirby\Cms\Page