in my Layouts default.ctp I have
<!--nocache-->
<?php echo $this->Html->getCrumbs(' / ', 'Home'); ?>
<!--/nocache-->
Inside a view called rules.cpt I have
<!--nocache--><?php $this->Html->addCrumb('Rules', '/rules'); ?><!--/nocache-->
When first opening the (uncached) view, the breadcrumbs are rendered as wished. With every additional (cached) rendering, only Home
is being displayed.
When removing the caching from the Controller
// public $cacheAction = array('home' => 120, 'rules' => 36000);
everything works.
Why isn't addCrumb()
being called? I tested to add <?php echo time(); ?>
to the same nocache
-block which works (i.e. is called on every page rendering).
no-cache
-flags. But as the displayed info is static, you are right. If you post that as answer, I will tick it as correct – Giguere