Setting individual cache prefix in cake 1.3

2010-10-20 Thread Emulator
Hi, I wonder if cakePHP still isn't able to have multiple cache prefixes for cached views. I am currently evaluating different MVC frameworks for a larger web project. One of the key requirements is to enable different views for different devices such as smartphones, TV, game consoles etc. It is

Re: Setting individual cache prefix in cake 1.3

2010-10-20 Thread cricket
On Wed, Oct 20, 2010 at 6:43 AM, Emulator thorsten.koer...@googlemail.com wrote: Hi, I wonder if cakePHP still isn't able to have multiple cache prefixes for cached views. I am currently evaluating different MVC frameworks for a larger web project. One of the key requirements is to enable

Re: Setting individual cache prefix in cake 1.3

2010-10-20 Thread Emulator
Hi, On 20 Okt., 16:38, cricket zijn.digi...@gmail.com wrote: On Wed, Oct 20, 2010 at 6:43 AM, Emulator thorsten.koer...@googlemail.com wrote: Hi, I wonder if cakePHP still isn't able to have multiple cache prefixes for cached views. I am currently evaluating different MVC frameworks

Re: cache prefix

2009-12-20 Thread Kawina
/core.php. I changed it in accordance with the documentation as follows: Original:Cache::config('default', array('engine' = 'File', 'path' = CACHE) ); Change:Cache::config('default', array('engine' = 'File', 'path' = CACHE, 'prefix' = 'uat_') ); However, that has had no effect

Re: cache prefix

2009-12-18 Thread Kawina
('engine' = 'File', 'path' = CACHE, 'prefix' = 'uat_') ); However, that has had no effect. A typical cache file looks like this: cake_core_default_eng (in /persistent). I'm surprised by the cake_ prefix. Is that the default when no prefix is defined? Are there other files to modify? Is it possible

cache prefix

2009-12-17 Thread Kawina
a prefix in /app/config/core.php. I changed it in accordance with the documentation as follows: Original: Cache::config('default', array('engine' = 'File', 'path' = CACHE) ); Change: Cache::config('default', array('engine' = 'File', 'path' = CACHE, 'prefix' = 'uat_') ); However, that has had no effect

Re: does Cache prefix work?

2008-04-30 Thread robert123
Hi, I am using recent Cake build (1.2.0.6311 beta), I am also working on a Multi-language site, same like you, I prefix the locale in front the controller, like en-gb/controller/action rus/controller/action and I enable the cache, cache view generate in app\tmp\cache\views have the file name

Re: does Cache prefix work?

2008-04-23 Thread Krommenaas
I'm setting it where I'm using it. Since it's based on the domain name I can set it anywhere. I suppose if you store the user language in a cookie you could also read it anywhere. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: does Cache prefix work?

2008-04-22 Thread Krommenaas
I managed to get prefixes before the filenames of my cached views, here is how in case someone else needs them. This is with the most recent Cake build (1.2.0.6311 beta). 1) in \cake\libs\view\helpers\cache.php, in function __writeFile($content, $timestamp): replace $cache = $cache .

Re: does Cache prefix work?

2008-04-22 Thread b logica
So where are you setting $prefixxx? It must be resolvable by dispatcher, so AppController would be out of the question. On Tue, Apr 22, 2008 at 3:31 PM, Krommenaas [EMAIL PROTECTED] wrote: I managed to get prefixes before the filenames of my cached views, here is how in case someone else

does Cache prefix work?

2008-04-19 Thread Krommenaas
Has anyone managed to get Cake to put a prefix before cached views? If so, can you please post your core config and what you've had to do to get it to work? There are several threads here where people say they can't get it to work, so I wonder if it's working for anyone at all. It's a crucial