hello,

I am not sure does this help, but I am able to get caching to work in
cakephp1.2 beta for my multilanguage site,

at the products_controller, there is a show action I put something
like this

 var $cacheAction = array('en_gb/products/show/' => '72 hour',
                             'zh_tw/products/show/' => '72 hour')

in the products_controller file

and the file generated in   \tmp\cache\views folder is in the format

_en_gb_products_show_170.php

hence it will get the correct cache file

www.generics.ws
www.genericsmed.com


On May 17, 6:31 pm, francky06l <[EMAIL PROTECTED]> wrote:
> It seems yes, post a ticket on trac (unless it's already reported)..
>
> On May 17, 11:08 am, foxmask <[EMAIL PROTECTED]> wrote:
>
> > i've done some tests and a simple one is in core.php :
>
> >        Cache::config('default', array('engine' => 'File',
> >          'path'=>
> > realpath(dirname(__FILE__) .DS.'..'.DS.'tmp'.DS.'cache'.DS.'fr'.DS)
> >          ));
>
> > and when i look into my /home/foxmask/www/tmp/cache/fr/ directory (in
> > views/persistent/models) everything is still empty.
>
> > here it's clearly a bug...
>
> > On 17 mai, 01:06, francky06l <[EMAIL PROTECTED]> wrote:
>
> > > I guess Config::language is available in beforeFiler, but not before.
> > > I never tried to override theCache::config('default"...) in
> > > beforeFilter, but I do not see any reason this would not work..
> > > However, I am not sure if in case of a cached view,
> > > app_controller:beforeFilter is even reached...
>
> > > On May 17, 12:45 am, foxmask <[EMAIL PROTECTED]> wrote:
>
> > > > Hello,
> > > > i would like to avoid to change something inside cakephp .
>
> > > > i tried in the core.php file :
> > > >Cache::config('default', array('engine' => 'File','path'=>
> > > > dirname(__FILE__) 
> > > > .DS.'..'.DS.'tmp'.DS.'cache'.Configure::read('Config.language')));
>
> > > > but unfortunatly, Config.language is not set yet at this moment.
>
> > > > in app_controller.php in beforeRender Config.language is available
> > > > but i dont know if it's the right place to modify the
> > > >Cache::config('default'.....)
>
> > > > So, I really dont understand how a so simple thing cant work
>
> > > > Anyone get an idea ?
>
> > > > On 16 mai, 09:42, Filip Camerman <[EMAIL PROTECTED]> wrote:
>
> > > > > Hi,
>
> > > > > I've had the exact same problem: thecacheprefix that you can specify
> > > > > in the core config is not used for cached views - which is a major bug
> > > > > imo. I solved it by hacking the core in the places where it reads/
> > > > > writes cached views, since I absolutely needed this functionality.
> > > > > I've described how to do it in the second message of this 
> > > > > thread:http://groups.google.com/group/cake-php/browse_thread/thread/62b4d61b...
>
> > > > > hth
--~--~---------~--~----~------------~-------~--~----~
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