How to request if a page is cachable?
Posted: Thu Dec 06, 2007 1:04 pm
Hi forum,
I want to have some actions from an UDT depending on pages cache status. The UDT should only have an output if checkbox "Cachable" is marked.
Have tried something like this
but it does not work
.
Btw. I'm only a copy&paste coder
...
I want to have some actions from an UDT depending on pages cache status. The UDT should only have an output if checkbox "Cachable" is marked.
Have tried something like this
Code: Select all
global $gCms;
$thispage = $gCms->variables['pageinfo']
$pageinfo = PageInfoOperations::LoadPageInfoByContentAlias($thispage);
if (isset($pageinfo) && $pageinfo->cachable == true)

Btw. I'm only a copy&paste coder
