I18n already caches the strings after it has been parsed. Make sure
you actually have caching enabled.

On Oct 19, 10:08 am, Adrian Arnautu <[email protected]> wrote:
> Oh, now I see that you gave us the output, my bad :).
>
> Thank you.
>
> On Tue, Oct 19, 2010 at 8:06 PM, Adrian Arnautu 
> <[email protected]>wrote:
>
> > Hi,
>
> > I've not done this yet, I'm thinking to do it (I have also a multilanguage
> > app that needs to be fast), cache the output.
> > I'm not saying to cache every __() result, that will be childish :).
>
> > Maybe your content is in an element, if you can cache it, do it. Maybe you
> > have content that isn't "so dynamic", it can be refreshed every few hours or
> > at some events, try to cache it.
> > When possible, try to remove calls to __() from loops.
>
> > Like I said, so far I haven't done profiling. Can you please tell us, based
> > on your results, what are the most used functions/classes/methods, in
> > general, where are the bottlenecks?
>
> > Thank you,
> > Adrian
>
> > On Tue, Oct 19, 2010 at 12:37 PM, CakeME 
> > <[email protected]>wrote:
>
> >> My website is very slow and i managed to install xdebug
> >> And after looking at the profile generated by the xdebug using
> >> kcachedgrind i found i18n::Translate took more inclusive , self and
> >> more counts compare to others
> >> i am thinking what to do how can i optimize this. can some one tell me
> >> how can i do this
>
> >> Here is my generated profile:  http://yfrog.com/f/n8xdebugprofilingp/
>
> >> Check out the new CakePHP Questions sitehttp://cakeqs.organd help
> >> others with their CakePHP related questions.
>
> >> You received this message because you are subscribed to the Google Groups
> >> "CakePHP" group.
> >> To post to this group, send email to [email protected]
> >> To unsubscribe from this group, send email to
> >> [email protected]<cake-php%[email protected]>For
> >>  more options, visit this group at
> >>http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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

Reply via email to