« May 2012»
M T W T F S S
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

[blog...]

03.05.2012
14:17

Backend Language Caching in TYPO3 4.6

If you get lots of messages of this kind

 

??[lang]: User xyz has cleared the language cache

 

in your new TYPO3 4.6.x then there is a simple solution. Add the following setting to your typo3conf/localconf.php:

 

$TYPO3_CONF_VARS['SYS']['lang']['cache']['clear_menu'] = 'TRUE';

 

 

This will add a menu "Clear Language Cache" to your "Clear Cache" menu. Now the user may manually clear the cache.

 

This also fix now the problem with cache-files and NFS. In our setup, the typo3temp is on a NFS-partition. And there seems to be some race conditions why you get errors like this:

 

Core: Error handler (FE): PHP Warning: 
file_get_contents(/var/www/typo3temp/Cache/Data/t3lib_l10n/a232e71bc72d2771b802cab5b3f429b4):
failed to open stream: No such file or directory in /var/www/typo3_src-4.6.8/t3lib/cache/backend/class.t3lib_cache_backend_filebackend.php line 452

 

Usually the file exists - but maybe too late...

 

Alexander Bigga
Tags: typo3
Views: 387
  •  
  • 0 Comment(s)
  •  

Your comment

Notify me when someone adds another comment to this post

back

[ 26.02.2013 ]