I only have some general advice for you. Maybe someone else can tell
you something more specific.
Whenever you have your debug on, caching will not work as you expect
(since debugging data will be written to each page view.) So you need:
"Configure::write('debug', 0);" in app/config/core.php
The other general piece of advice I have is to check out a recent
version of 1.2 from svn. 6311 was a while ago and a lot of things have
been fixed and tweaked since. Caching has been touched but I don't
know if it the changes would affect your situation.
https://trac.cakephp.org/
/Martin
On Apr 28, 5:38 am, robert123 <[EMAIL PROTECTED]> wrote:
> am using the latest cakephp Beta: 1.2.0.6311 with i18n
>
> For every page access I add the below statement at the beforeFilter
> function in the app_controller to change the locale for the user
>
> Configure::write('Config.language', "en-gb");
>
> I also enable caching, and for every url, I will prefix the locale to
> the url that is
>
> for en-gb locale the url have the general form
> en-gb/controller/action
>
> for rus locale the url have the general form
> rus/controller/action
>
> So that the url will be unique for every action for different locale
>
> I enable caching for the action, and I checked after access at the app
> \tmp\cache\views folders to check whether caching is enable, I noticed
> after every access, the view is cache as _locale_viewname.php,
>
> so I thought caching is working, but I noticed the second access to
> the same url again, the page is regenerated again at the app\tmp\cache
> \views folders with the same name and there is still access to the
> database.
>
> Hence in effect the caching is not working, anyone have any idea why
> is it so? Thank you
>
> www.generics.wswww.genericsmed.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---