Looking at the function : override_ttl()
Maybe we need to include is_page_template() ?
Current code:
if ($postId && (is_page() || is_single())) {
$ttl = get_post_meta($postId, $this->prefix . 'ttl', true);
if (trim($ttl) != '') {
Header('X-VC-TTL: ' . intval($ttl), true);
}
}
Suggestion:
if ($postId && (is_page() || is_single()) || is_page_template()) {
$ttl = get_post_meta($postId, $this->prefix . 'ttl', true);
if (trim($ttl) != '') {
Header('X-VC-TTL: ' . intval($ttl), true);
}
}
-
This reply was modified 5 years ago by shaundma.