1

We did an update on production but still a translation which was newly defined in a translate.csv file did not work.

After rm -rf var/cache it still was not shown. We verified that the folder is empty. /tmp/magento also did not exist. After refreshing the page var/cache got filled again - so it is in fact used.

We were able to make it work by Flush Magento Cache in the backend - how can this be? Where else might the translation be cached?

edit

We found this in the local.xml

 <cache>
 <backend>apc</backend>
 <prefix>APC_</prefix>
 </cache>

The question is why Magento still writes to the cache folder.

asked Jun 18, 2014 at 7:51
1
  • It looks like it only uses APC for the backend. Commented Jun 18, 2014 at 8:43

2 Answers 2

1

If you use Memcached or APC, the system doesn't put anything to var/cache.

answered Jun 18, 2014 at 8:03
5
  • We do not knowingly use APC / memcached; how can we check it? Commented Jun 18, 2014 at 8:28
  • app/etc/local.xml has cache related block. another reason might be that Magento doesn't have enough permissions to write stuff into var/cache Commented Jun 18, 2014 at 8:29
  • Looks like we do use APC - edited the question. Commented Jun 18, 2014 at 8:34
  • Go into the APC cache management page and flush the APC cache there if the Magento Admin cache management doesn't take care of it. Sometimes APC can get stuck as well. Commented Jul 19, 2014 at 1:16
  • This is incorrect. If you configure only one backend, then Magento (or better Zend), will still use a "slow_backend" and defaults to file system. Additionally, Memcached key expiration has to be done in files, since Memcache doesn't support it. Details here: fabrizio-branca.de/… Commented Jul 21, 2014 at 4:25
1

If you want a reliable way to flush the cache from the command line, that uses Magento to do the work, use magerun. Details on why this wasn't working are in the comments. Additionally, APC may aggressively cache opcodes that it will make your head spin. Redis support is now in the Magento installation since 1.8, you may as well use it: No more dual backends and native key expiration.

answered Jul 21, 2014 at 4:31

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.