10
Cache & Magento Cache

What Are Cache & Magento Cache?

Embed Size (px)

Citation preview

Page 1: What Are Cache & Magento Cache?

Cache & Magento Cache

Page 2: What Are Cache & Magento Cache?

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

Page 3: What Are Cache & Magento Cache?

What Is Cache?

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

Page 4: What Are Cache & Magento Cache?

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

• Web cache is just an application of cache.

Page 5: What Are Cache & Magento Cache?

3 Types Of Web Cache

• Browser Cache

• Proxy cache

• Gateway Cache

Page 6: What Are Cache & Magento Cache?

Cache In Magento

Page 7: What Are Cache & Magento Cache?

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.

Page 8: What Are Cache & Magento 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)

Page 9: What Are Cache & Magento Cache?

• 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