Magento - Magento Cache

I am using memcache.

I want to understand what is stored in the Magento cache and how?

Does Magento store a cache variable with a website area or storage area?

I have googled and greped code but can't do anything,

Please, if someone can direct me to fix the links and the way

Thanks and Regards, Saurabh

+3
source share
4 answers

" " , , (, , HTML-, , eav ..). Magento, , (). ( , Magento 1.3.x, 1.4.x, ).

var/cache. (mage - 0, mage - 1, mage - 2), . ls var/cache/mage*/*, .

. . /etc/local.xml config.xml( etc etc) , . Magento core_config_data, . , , , . - var/cache. ls var/cache/mage*/*CONF*.

- ... app/design/frontendOrAdminhtml/yournamespace/layout/ xml , , -.

HTML - html, , . , .

, ( ) , - , , -/ . , , /, , . , var/cache/mage - f/mage --- LAYOUT_FRONTEND_STORE0_DEFAULT_BLANK_SEO var/cache/mage - f/mage --- LAYOUT_FRONTEND_STORE1_DEFAULT_BLANK_SEO... , , . !

+13

, , . /etc/local.xml.additional, , memcached. , <servers> <server1> <server2>, memcached node.

<cache>
    <backend>memcached</backend>
    <slow_backend>database</slow_backend>
</cache>

, .

, : 1. apache
2. mysql magento db truncate core_cache; truncate core_cache_tag.
3. memcached . 4. apache, , , - APC. .

, , . . 100 . core_cache 1 core_cache_tag. , .

+1

Memcache . /app/etc/local/xml , Memcache.

(), Magento () Memcache.

slow_backend - cache_tags - ..

Eg. , , , ..

Thus, without the specific, you cannot update caches individually, in fact, you will almost always have to rely on “flash cache storage” to see how updates take effect.

We wrote a good article here that covers your issue - http://www.sonassi.com/knowledge-base/magento-knowledge-base/what-is-memcache-actually-caching-in-magento/

+1
source

Source: https://habr.com/ru/post/1765805/


All Articles