Re: Cake cache essentially useless for web2.0 sites?

2007-02-04 Thread Langdon Stevenson

Hi TT

There was a recent thread in the list on this exact topic, caused by me 
going through this same learning process.

Search the group for "caching" and you are sure to find it.

There are solutions to your problem.  They may not give you all of the 
performance that you want, or may not be as flexible as you want, 
however it can be done.

As Nate says, if you have any ideas please contribute.

Regards,
Langdon


TT wrote:
> One of the nice features of Cake, is that it offers View-caching. 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



RE: Cake cache essentially useless for web2.0 sites?

2007-02-04 Thread Mariano Iglesias

If the web page you're caching is particular to a logged in user, is there
really a need to cache it?

Take eBay.com: 80% of their web content that is published (according to
their statistics) is handled by cached content. However, those are
semi-static pages, which are not dependent of the logged in user (such as a
product detail page.)

Also some sections of your CakePHP views can be set to be non-cached while
others should be cached, using  tag:

http://manual.cakephp.org/chapter/view_cache

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de TT
Enviado el: Domingo, 04 de Febrero de 2007 10:21 p.m.
Para: Cake PHP
Asunto: Cake cache essentially useless for web2.0 sites?

It seems to me that Cake's caching was only build with websites in
mind that don't allow/require users to login. I think this is a BIG
problem for many web2.0 sites. Any plans to change this in Cake 1.2?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cake cache essentially useless for web2.0 sites?

2007-02-04 Thread nate



On Feb 4, 8:20 pm, "TT" <[EMAIL PROTECTED]> wrote:
> One of the nice features of Cake, is that it offers View-caching. At
> least, that's what I thought, untill I really wanted to use it. It
> turns out your controllers are completely bypassed when you use Cake's
> builtin cache. This has the effect you cannot use any helpers etc that
> are set from your controllers. BIG problem. Why?

Yup, it's a pretty big problem if you don't know how to use it
properly.

> Suppose you have a site that requires your users to login. Now you
> save your users in a session, but you build a nice component and
> helper for it to access them. Now it turns out you cannot display the
> current user on the cached page anymore because you cannot access the
> helpers. Or for example you want to protect access to some pages.
> Impossible when you want to use caching.

So you're going to try to cache full pages with user-specific data...
yeah, that'll scale *real* well...

> It seems to me that Cake's caching was only build with websites in
> mind that don't allow/require users to login.

Again, the trick is knowing how to use it.

> I think this is a BIG
> problem for many web2.0 sites. Any plans to change this in Cake 1.2?

Hopefully you'll realize how well your suggestion won't work once you
start to think through it.  However, if you'd like to suggest a
specific approach, and/or have a working proof-of-concept, we're all
ears.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Cake cache essentially useless for web2.0 sites?

2007-02-04 Thread TT

One of the nice features of Cake, is that it offers View-caching. At
least, that's what I thought, untill I really wanted to use it. It
turns out your controllers are completely bypassed when you use Cake's
builtin cache. This has the effect you cannot use any helpers etc that
are set from your controllers. BIG problem. Why?
Suppose you have a site that requires your users to login. Now you
save your users in a session, but you build a nice component and
helper for it to access them. Now it turns out you cannot display the
current user on the cached page anymore because you cannot access the
helpers. Or for example you want to protect access to some pages.
Impossible when you want to use caching.
It seems to me that Cake's caching was only build with websites in
mind that don't allow/require users to login. I think this is a BIG
problem for many web2.0 sites. Any plans to change this in Cake 1.2?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---