What Are Cache & Magento Cache?

Post on 12-Jul-2015

1.028 views 4 download

Transcript of What Are Cache & Magento Cache?

Cache & Magento Cache

You must have heard a lot about“cache”, even you are not a developer.However, how much do you understandabout it?

What Is Cache?

Cache is a place to store data temporarilyin computing environment, which helpsincrease processing speed of the futurerequest for that data.

• So, web cache is a type of cache? The answer is NO.

• Web cache is just an application of cache.

3 Types Of Web Cache

• Browser Cache

• Proxy cache

• Gateway Cache

Cache In Magento

Cache in Magento

• In Magento, cache is in var/cache folder.“F lush cache” means to free cachememory.

• F lush Magento Cache wi l l de lete cachedata saved by Magento (with Magentotag) , whi le F lush Cache Storage wi l lremove al l the data in cache.

Magento Cache is stored under key – valueform, like other systems. The function of“save” and “load” in class is:

Mage_Core_Model_Cachesave($value, $key, $tags = array(), $lifeTime=null)load($key)

• 1 line represents for 1 cache option. There are 8options in total, saved in core_cache_option table.

• 1 line also represents for 1 cache tag. When we refreshone of these lines, it means that we delete cache withcorresponding tags.

In cache table of System > Cache Management Menu