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 . '.php';
with
    $cache = $prefixxx . $cache . '.php';

where $prefixxx is your prefix (I fill mine based on the domain name
which is different for my different languages).


2) in \cake\dispatcher.php, in function cached($url):

replace
      $filename = CACHE . 'views' . DS . Inflector::slug($this-
>here) . '.php';
with
      $filename = CACHE . 'views' . DS . $prefixxx .
Inflector::slug($this->here) . '.php';

and replace
        $filename = CACHE . 'views' . DS . Inflector::slug($this-
>here) . '_index.php';
with
        $filename = CACHE . 'views' . DS . $prefixxx .
Inflector::slug($this->here) . '_index.php';

where $prefixxx is again your prefix

That's it, caching works fine now for my multilingual site
(antwerps.be / aentwaerps/be)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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