I was searching on how to enable cache to store in database but found nothing. So, my question is:
Does magento do really has the feature to stores cache in the database?

I found out these tables - core_cache and core_cache_tag in the database. Does it meant to store Magento cache? I found that the tables is always empty even I enable cache from Magento admin panel.

  • This might be what you are looking for, using the DB as cache sonassi.com/blog/magento-kb/…
    – mbalparda
    Oct 23, 2015 at 8:41
  • thx @mbalparda..so it possible to save cache in db. now i just to know the way how
    – fiq
    Oct 23, 2015 at 8:48

1 Answer 1


edit the app/etc/local.xml and add this inside the <global> tag (position not important)

  • great...ill try this first and see if it works or not..thx @Marius
    – fiq
    Oct 23, 2015 at 8:49
  • Whilst this is possible, it should NEVER be used. Use Redis. Oct 23, 2015 at 8:50
  • ok..i just try this...i looked into the cache table in database. it is worked. BUT...my store page turn got this SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
    – fiq
    Oct 23, 2015 at 8:54
  • Ben Lessani, I was thinking about that also. yet to implement that later. Just want to do some testing and compare with this database way of caching
    – fiq
    Oct 23, 2015 at 8:55
  • 1
    can redis cache layouts and blocks - That's the whole point of Redis. It is a cache store for the standard Magento caches. It drops in place to replace the default file based caching mechanism. Oct 23, 2015 at 9:49

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.