Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
14 votes

Varnish top navigation menu gone

I had the same issue, I found a solution for this. I just removed the ttl attribute from /vendor/magento/module-theme/view/frontend/layout/default.xml and the menu bar appeared again.
Amit Naraniwal's user avatar
11 votes
Accepted

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

It depends on what your module is rendering. It boils down to do not render private, customer specific data server side. The exception being on completely un-cached pages (for example the customer ...
Vinai's user avatar
  • 14k
11 votes

X-Magento-Cache-Debug: MISS

First, make sure you have caching enabled bin/magento cache:status Next, try to load some public page (for example the homepage) directly from apache or whichever server you're using, before varnish. ...
Andriy B's user avatar
  • 221
8 votes
Accepted

Multiple Magento 2 installs on 1 Varnish install

Yes, you can run multiple Magento 2 shops with single Varnish instance. For single Magento installation with multiple storefronts No changes needed at all For multiple Magento installations on the ...
Danila Vershinin's user avatar
8 votes
Accepted

Product saving very slow (takes minutes)

Change indexing settings to Update on schedule and do indexing by ssh manually or setup the cron jobs to let Magento manage it on its own.
Saphal Jha's user avatar
  • 1,873
7 votes

Magento 2 503 Backend Fetch Failed

In Magento 2, this error is caused because the length of cache tags is more than 8192 characters. You can fix this error by increasing http_resp_hdr_len value in varnish configuration file. I ...
Hung Tran's user avatar
  • 441
7 votes
Accepted

Magento 2.1 Varnish Cache not Purge

Finally I fixed myself the issue. env.php 'http_cache_hosts' => array ( 0 => array ( 'host' => '127.0.0.1', 'port' => '80', ), ), default.vcl if (req.method == "PURGE") { ...
George George's user avatar
7 votes
Accepted

How to activate and setup full page caching using Varnish from command line

Use: php bin/magento config:set system/full_page_cache/caching_application 2 And follow the same patterns for the other paths, like so: php bin/magento config:set system/full_page_cache/varnish/...
Steve K's user avatar
  • 186
7 votes
Accepted

Varnish cache cleaning problem (Purge: Method not allowed)

Are you sure you have added the varnish cache to the Magento env.php config? You can do this by manually editing env.php or with this command php bin/magento setup:config:set --http-cache-hosts=...
paj's user avatar
  • 5,874
7 votes
Accepted

Magento 2.2: Problem with varnish.vcl generated

There's a UI nuance that you need to be aware of. When first selecting Varnish as the caching mechanism, you need to Save the config before exporting the VCL. This action will pre-populate the fields ...
mkotov's user avatar
  • 416
7 votes
Accepted

Why is full page not cached in Magento 2 even if FPC is enabled?

Most common issue is a block included in all pages with cacheable = false. Maybe an extension with this declaration in default.xml. See vendor/magento/framework/View/Layout.php, function isCacheable. ...
Daniel Ifrim's user avatar
  • 3,404
7 votes
Accepted

Magento 2.2.5 to 2.2.6 upgrade error

We user varnish and redis cache on our server and had this same error. This is the procedure we followed for a successful upgrade. composer require magento/product-community-edition 2.2.6 --no-update ...
hpz937's user avatar
  • 116
7 votes
Accepted

What is the purpose of http_cache_hosts entry in app/etc/env.php?

To make Magento aware of the Varnish servers, add the following section to app/etc/env.php. For Example: 'http_cache_hosts' => array ( 0 => array ( 'host' => 'varnish-0', ...
Muhammad Hasham's user avatar
7 votes
Accepted

How to set page cache expires to 7 days?

At present I see the expires is set to -1 The Expires header you see is client-side. Browsers should not cache things like product pages, etc. which is why the default Magento VCL sets it to -1 in ...
Danila Vershinin's user avatar
6 votes
Accepted

Why does the default VCL produced by Magento force search requests to bypass Varnish?

Yes, because search results change frequently and Magento doesn't know how to invalidate those results. And because the world isn't a perfect place to live :( Anyway, you can do just: # Bypass ...
Danila Vershinin's user avatar
6 votes
Accepted

Varnish and no-store, no-cache, must-revalidate, max-age=0

The value no-cache, must-revalidate, max-age=0 for Cache-Control that you see only applies to browser caches, which instructs Magento HTML to not be cached by them. That Cache-Control that you're ...
Danila Vershinin's user avatar
6 votes

Magento2.2: How to disable cache for homepage only?

Try this, Method 1: Add the below code to homepage cms under <referenceContainer name="content"> <block cacheable="false"/> </referenceContainer> content ->...
Prathap Gunasekaran's user avatar
6 votes
Accepted

Is it worth paying for Litespeed + LiteMage Cache on a Magento 2 site, or can I do just as well with Varnish, Turpentine, Redis, etc.?

Should I believe any of those claims? You shouldn't believe any claims unless you can independently verify them. That said, it's easy to decipher why LiteSpeed could be somewhat faster than other ...
Danila Vershinin's user avatar
6 votes

Is it worth paying for Litespeed + LiteMage Cache on a Magento 2 site, or can I do just as well with Varnish, Turpentine, Redis, etc.?

Full disclosure: I work for a hosting company that regularly uses LiteSpeed, but we've worked with a lot of technologies and Magento, including Apache, Nginx, Varnish and so forth. In our experience, ...
Craig Luke's user avatar
6 votes

Magento 2 Header Sign In Sign Out Issue

Please try the following way using knockout js. you can add following code in your .phtml file, this will help you to resolve login issue while the cache is enabled <ul data-bind="scope: 'customer'...
Aasim Goriya's user avatar
  • 5,444
6 votes
Accepted

Varnish - Error 503 Backend fetch failed (Header too long)

Please check if your runtime parameter changes actually took effect. Please run the following command to validate this: sudo varnishadm param.show | grep "^http_" This will display all ...
Thijs Feryn's user avatar
  • 1,071
6 votes
Accepted

Whats is major impact when implements redis cache and varnish cache on Magento 2?

Redis Redis is a distributed key-value store that is massively scalable. It is used to store pre-computed values that can be retrieved at high speed and high concurrency. Redis in Magento is used to ...
Thijs Feryn's user avatar
  • 1,071
5 votes

can i use both built in cache & varnsih cache for magento2 at a time?

When you have Varnish cache enabled in Magento 2.x configuration, Page Cache is not active anymore, these are the only two options according to this line of code: https://github.com/magento/magento2/...
Ivan Chepurnyi's user avatar
5 votes

Magento 2: Varnish + Redis for Full Page Cache at the same time?

I am using Varnish + Redis for Full Page Cache at the same time. In Magento 2.3.2, after clear both cache, visit some pages, then you will find the database in Redis for page cache will not have any ...
Key Shang's user avatar
  • 3,425
5 votes
Accepted

Varnish with Magento 2?

Go to Admin panel -> Configuration -> Full Page Cache -> Varnish Configuration: Use following settings: Caching Application: Varnish Caching TTL for public content: 86400 Access list: localhost ...
Ashok Kumar's user avatar
5 votes
Accepted

Magento with Turpentine + Varnish + Nginx

Yikes lots of questions here. BTW, feel free to open issues on our github as well to get help. I know lots of folks there use nginx, while I personally have little experience with it. Do I need to ...
Aric Watson's user avatar
5 votes

Does Varnish cache not compatible with Redis?

The information is incorrect. All the software you mentioned can co-exist just fine on the same server. However, note that you don't really need Memcached. If your intention to use it was for storing ...
Danila Vershinin's user avatar
5 votes
Accepted

Magento 2 development: use or not Redis and Varnish?

Especially for Varnish it makes sense to use and test ist during development as you can run into big problems laster. I just read Alan Kent's (Magento Chief Architect) Blogpost today where he ...
Anna Völkl's user avatar
  • 17.3k
5 votes
Accepted

Magento 2+nginx+varnish cannot serve same page multiple times, resp 502

I ended up reaching the #varnish channel on IRC and ask for help in case a guru helps me out. So a guy called "guillaume" reached out and pointed out the error. If we inspect the panic.show log on ...
1337_sanc's user avatar
  • 389
5 votes
Accepted

Varnish cache not clearing from magento admin

The env.php should have: 'http_cache_hosts' => array ( 0 => array ( 'host' => '127.0.0.1', 'port' => '80', ), ), It should point to Varnish which I think in ...
Danila Vershinin's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible