I had a test about this and get a strange result.
The browser I used are IE6 and Firefox2.0. At core.php the debug level
is set 0.
I add some code to the file "/cake/libs/controller/component.php"
about the "$this->__controller->{$component} =& new
$componentCn($param);", and print the component's name and the time
expended.
So when Visit with IE6 it worked as we expect but when using
firefox I found it sometimes waste 6~10s as create a component named
'session', so I do not known how to explain this...
On 7月10日, 下午10时43分, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 7/10/07, hi and hello <[EMAIL PROTECTED]> wrote:
>
>
>
> > Every time when the user wisite a url like /controller/action/, and
> > the cakephp will load the models and components declared in this
> > controller, which might be improvident because not every visit need
> > to loac the heavy models and components class.
> > For example, the url /blog/create/ ,when GET, I just want to display
> > a page for the user to create a blog.
> > So then what to do? config for every action's GET and POST? or code
> > carefully to avoid this?
> > How to do there is better?
>
> In production mode (debug set to 0) CakePHP can cache a lot of
> information for you. Worry about performance when it actually becomes
> an issue for your application. You might be surprised at how well
> CakePHP can peform.
>
> --
> Chris Hartjes
> Senior Developer
> Cake Development Corporation
>
> My motto for 2007: "Just build it, damnit!"
>
> @TheBallpark -http://www.littlehart.net/attheballpark
> @TheKeyboard -http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---