On Jul 21, 6:48 pm, Matthew <[email protected]> wrote:
> I have a CakePHP site whose homepage is cached for 10 minutes at a
> time using Cake's default options. However I've been alerted that
> "every once in a while", once a day or so, it's losing the layout,
> just displaying the page content without the header, styling etc.
>
> Removing the cached version and regenerating the page apparently fixes
> the problem. But why would/could this be happening in the first place?

If you ajax load a page with the same url as the full-html version /
and/ are using full page caching that would be one combination of
factors which would lead to what you describe. Because headers are not
taken into account when generating or querying the full page cache
files.

If that applies to you, you can avoid such problems quite easily:

 /foo/bar - full html
 /foo/bar.ajax - body only

Or any similar permutation thereof.

AD

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to