Tuesday, April 30, 2013

Layout and

Hello everyone,

I enabled the cache helper on one of my controllers and it's working perfectly with some major issue that has forced me to disable. I have in my default layout a call to include a file:

include "header.php"; it's the typical header with some static menues and a "sign in" link an there is where my problem starts, this link has the typical if() to checking for a user signed in and either show the sign in link or the user's name. I have added <!--nocache--> & <!--/nocache--> tags around the whole <div></div> element holding that code but the view will not generate the different content. 

I have read http://book.cakephp.org/2.0/en/core-libraries/helpers/cache.html several times but I don't seem to figure out if something is wrong or what I want is not possible. 

Some extra details:

1) Configuration is ok, cached views are being stored on the tmp directory and they show an incredible speed increment. 
2) I tried clearing my browser cache and restarting the webserver. 

Can someone confirm if what I'm trying to achieve is possible?

cheers!

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: