CakePHP cache i18n translate

To force the language to update you can clear the persistent and models directories in the /tmp/cache directory. If view caching is enabled you'll have to clean out views as well.

Caching is disabled when debug is set to 2 (which is the value for using the framework during development) and the persistent directory is populated with new cache files, overwriting the old ones each time a view is loaded. So the debug switch and subsequent browser refresh might clean the old language files for you.


I found a strange solution:

I set (app/Config/core.php)...

Configure::write('debug', 2); // It was 0

Press, F5... wait... and works. Later, I back...

    Configure::write('debug', 0);

Press F5 again, and works.

Why? I no have idea.