Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cache]

Question related to Magento default caching system, full page cache or 3rd party caching solutions.

58
votes
15answers
40k views

How to force flush CSS cache on client side?

Suppose that we changed a lot of functionality for the module (templates, layouts, CSS) and we are going to move these changes to the production site, but a lot of customers have cached CSS in their ...
34
votes
2answers
27k views

Magento Cache - confusion about Varnish, Redis, APC, Memcache

I'm try to improve Magento performances ( soon or later "MageDev" hit this point :) I did some research and I found a lot of good, but not homogeneous, guides. What I got is that: MemCache or ...
32
votes
4answers
31k views

Get original image file from a cache URL

Is there any function that given a cache image product file return the original one? Example : => Cache URL: {BASEURL}/media/catalog/product/cache/2/image/9df78eab33525d08d6e5fb8d27136e95/a/l/IMAGE....
30
votes
3answers
36k views

How can I disable cache for particular section or block

I have developed a top bar cart functionality for store front that displays latest three products added to the cart this works great when cache is disabled but when i enable the cache it showing weird ...
27
votes
1answer
13k views

Mage_PageCache - External full page cache

So in Community Edition there is an option under System->Configuration->System->External Full Page Cache Settings that appears to be offering a full page cache using Zend Cache. When you set ...
25
votes
6answers
16k views

Clear Theme/CSS Cache in Magento 2

When I am theming a Magento 2 store, what is the suggested way to clean the caches? I edit the .less files and then I currently do rm -rf pub/static/frontend/* var/view_preprocessed/ var/*cache/* ...
23
votes
4answers
6k views

Live site blank in frontend or keep on loading and never load

I am facing Strangest Problem ever in magento. we are using 1.9.0 version. from last 2 months, our live site is "blank" or "keep on loading" for used browsers. Means in this browser we visited the ...
22
votes
4answers
25k views

How to disable the cache for the block in Magento 2?

protected function _construct() { $this->addData( [ 'cache_lifetime' => false, 'cache_tags' => array('MY_BLOCK'), ] ...
21
votes
5answers
24k views

How can I programmatically flush Magento's Cache?

I'm automating release configurations by bootstrapping Mage in several release scripts. At the end of the scripts, I need to flush Magento's cache. Is there a way to flush the cache using one of the ...
21
votes
4answers
25k views

Correct Method of Flushing Caches & Managing the Compiler

I'd like to know if there's any prefered procedure for the following: Flushing of the Magento cache Enabling/Disabling of the Magento Compiler 1. Flushing of the Magento Cache There are a few ...
20
votes
1answer
5k views

Block with Cachable=false not rendered on product view page

I am using magento2-1.0.0-beta4 I have copied the checkout.root block from app/code/Magento/Checkout/view/frontend/layout/checkout_index_index.xml to the product page. Everything is working fine, ...
19
votes
3answers
13k views

Pre-Warming the Magento Enterprise Full Page Cache

The performance benefits of the full page cache in Magento Enterprise are fairly well known. What may not be quite so well known is that for the full benefit of this to be realized, it must be fully ...
18
votes
5answers
17k views

Magento 2: What is difference between Cache Clean & Cache Flush?

In Magento 2 we have 2 commands php bin/magento cache:flush php bin/magento cache:clean What's the exact difference between them? I'm generally using cache:flush. I never used cache:clean. So, ...
18
votes
4answers
3k views

EE 1.14.2 / CE 1.9.2 block caching update has non-unique cache keys - duplicate content showing on frontend

When I upgraded to EE 1.14.2, most things went smoothly but I came across an issue when I started to check my various frontend pages. I have a catalog node with several subcategories and each of those ...
17
votes
5answers
13k views

Speed : Magento with both APC and Memcached

We have studied many forums and don't know the answer to the following. We have both APC and Memcache installed on our servers. We are not sure what the correct and best config is. My question What ...
17
votes
5answers
8k views

How to make Magento 2 development sites fast?

I turned off all caches and I set deployment mode to development. So my Magento 2 development sites on all machines are very slow compared to Magento 1.x sites. Is it normal for Magento 2? What ...
16
votes
6answers
9k views

Cache is on, but var/cache is empty?

I have a magento 1.9.0.1 and all caches are turned on, why is var/cache empty? I can only empty the cache from the backend, but when this is broken, I have a problem. Where does magento write the ...
16
votes
3answers
7k views

Static block FPC hole punch

What would be the easiest way to create a FPC hole punch for static block (cms block)? Let's say I have a static block that calls another block inside that has behaviour I want to be dynamic on ...
16
votes
2answers
5k views

Magento Automatic Caching Insight

We are running Magento EE 1.11 with memcache. 2GB per memcahce server, 4GB total. We have about 240k products. Available ram: 6GB Cores: 16 Threads: 32 Here is the deal, more new products are added ...
15
votes
5answers
15k views

Full Page Cache on CE 1.8 - An FPC Magento Module? Varnish? Both?

So I am a bit confused as I go about researching Full Page Caching for Community Edition 1.8. I have already implemented a Two Level Redis Cache, CDN, tuned MySQL's my.cnf for max performance (w/ the ...
15
votes
4answers
3k views

CMS block caching issue in EE 1.14.2

I have an issue that seems to be related to the caching of CMS static blocks. I have a cms page and within that page I am rendering a number of cms static blocks. A simplified version of the CMS ...
14
votes
11answers
28k views

There are no commands defined in the “cache” namespace

Update Everything is working now but There are no commands defined in the "cache" namespace is still there. I tried chmod 777 -R var/generation, didn't fix a thing. AFAIK no module is enabled ...
14
votes
4answers
24k views

How to flush Magento 1.9.x cache using SSH?

If for some reason I couldn't access my Cache Management page from my Magento Admin, how can I clear cache using SSH?
14
votes
2answers
7k views

Required modifications for using Varnish on Magento CE

I'm struggling to find any good working examples of what modifications are required to allow Varnish to cache a Magento site. Ideally I'd like a list of tasks, such as things to disable/enable and ...
14
votes
1answer
1k views

How to use Database as slow_backend instead of Files in Magento EE 1.12?

In Magento EE 1.12.0.0 It would seem that no matter what configuration changes I make to app/etc/local.xml, the default file cache continues to be used (which is evidenced by var/cache/ always filling)...
13
votes
2answers
3k views

Why is the full page cache disabling block cache?

I have a static part which is included on every page (navigation), but takes long to generate. That is why I have set a cache lifetime and a static cache key. Works fine, until FPC is enabled. Then ...
12
votes
1answer
649 views

Create VCL for Magento 2

In the official documentation it says Varnish is supported out of the box and there should be an option to generate a VCL file compatible with Varnish 3 and Varnish 4. I can't find this using the ...
12
votes
1answer
218 views

The curious case of the phantom navigation decorator striking Magento's EE cache

Get ready for a weird one. So I'm customizing the primary catalog navigation to build a state-full UI behavior that handles multiple interaction models (menus, dropdowns, modals, etc) across devices. ...
10
votes
2answers
3k views

Magento 2: how to create your own custom cache type?

In Magento 1, it was possible to create your own cache type by declaring the following in your config.xml: <global> <cache> <types> <custom translate="...
10
votes
3answers
3k views

Cache not enabling

I'm trying to enable the cache in magento that stopped overnight. When I turn shows success message but not active. I tried to activate programmatically and with mysql but without success. I also ...
10
votes
2answers
284 views

Whats the purpose of lockedLoadData / uncached page build takes around a minute, spent in usleep

I think since the update to Magento 2.3.1 I have problems with uncached page loads (during development). I did a blackfire.io trace and it turns out that 42 seconds are spent in usleep here. Now I ...
10
votes
1answer
1k views

What's the Role of CACHE_ID and CACHE_TAG in Magento 2?

In Model Classes, I have seen this constant, CACHE_ID and CACHE_TAG, I know it is used to store data in the cache. But how does it actually work. What should be considered while caching and flushing ...
10
votes
1answer
676 views

Holepunching of header in magento store

I have implemented holepunching of header in magento, and even though I have got it working on a per customer basis, I need the ability to take this one level deeper by making it work on diff cart ...
10
votes
2answers
1k views

How does cache works in magento?

I would like to get more clarity on Magento cache algorithm. I referred https://www.nicksays.co.uk/developers-guide-magento-cache/ http://www.demacmedia.com/magento-commerce/magento-tutorials/...
9
votes
8answers
16k views

Refresh the cache programmatically in Magento 2 at window system

I am looking for code that can refresh or flush the Magento2 cache via script. It was so easy in Magento 1.x. I am running Magento2 on WAMP server (window).
9
votes
3answers
16k views

Flushing REDIS Cache

Will either of the buttons FLUSH REDIS?
9
votes
2answers
12k views

Magento2 Correct Sequence to flush all Caches/Static files

I'm having a hard time in development with generated classes, pre-processed files and caches in Magento2. In comparisson with Magento1 it seems no longer possible to efficiently develop when ...
9
votes
1answer
8k views

How do disable caching of custom block on product view page?

I have customBlock in product_view. How do disable cache for this?
8
votes
2answers
9k views

Automatically refresh Cache

I would like to refresh all cache at specified intervals, like once a day at midnight (as an example). How can I accomplish this? I'm using CE 1.9.1.
8
votes
1answer
706 views

Magento 2: how to make a module compatible with Varnish Cache?

This week, I noticed an interesting tweet (linked by Ben Marks in the comment below) that was saying something like this: Please make your Magento 2 modules compatible with Varnish as it is ...
8
votes
1answer
4k views

what it means by Magento cache fast-backend and slow-backend?

What it means by cache backend slow_backend slow_backend_store_data auto_refresh_fast_cache I have see this types of caches config in local.xml.additional file. I want to is know what is meant ...
8
votes
1answer
469 views

Why Can't Magento Turn Off The Cache When Redis Fails

I'm working with Magento 1.9.0.1, and every now and again our Redis servers which host the Magento cache, (AWS ElastiCache) will go down. When this happens, Magento fatally errors until Redis is ...
7
votes
1answer
5k views

Redis on Magento Enterprise 1.13

Just a quick question I cannot seem to find a solid answer for, does Magento Enteprise 1.13 come with Redis for cache backend out of the box now? Or do I still need to use https://github.com/...
7
votes
1answer
5k views

Various Magento Cache flushing methods

There are a number of ways to flush Magento cache, with slight differences. I have always been a bit confused about these and often end up overdoing it when deleting the cache. This my understanding ...
7
votes
3answers
4k views

Why clear pub/static/frontend after css changes in dev mode?

I am working with Magento2 and have a question. I am working in the development mode. But when I do some CSS changes in my theme, why I have to manually clear the pub/static/frontend folder every ...
7
votes
1answer
737 views

Why is cache being saved to the file system when Redis is configured as the cache backend?

I'm using a call to Mage::getSingleton('core/cache')->save() within a controller of mine and it's saving the cached value to the file system (var/cache/) even though Redis is configured as my cache ...
7
votes
1answer
1k views

Lesti FPC, Redis and Magento multistore. How to Clear cache for only one store?

I have successfully set up Lesti FPC with latest Redis, including session and backend cache, on a Magento 1.9.2 with a few stores. Everything is working really great. My question is, if possible, how ...
7
votes
1answer
2k views

Blocks HTML Cache & Sub Category Display

So I've moved my store up to 1.9.2.1 Everything is looking good except for the Blocks HTML Cache. I'll try to explain this as best I can. I have the common setup of using a static block calling a ...
6
votes
7answers
13k views

error : cache_dir must be a directory?

I am working with Magento 1.7 and suddenly I have this error when I go to cache management: cache_dir must be a directory I tried this solution to change this file lib/Zend/Cache/Backend/File.php ...