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.ws
www.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
-~----------~----~----~----~------~----~------~--~---