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.
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 ...
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. ...
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 ...
8
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/...
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.
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 ...
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") {
...
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=...
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 ...
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.
...
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
...
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',
...
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 ...
7
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 ...
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 ...
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 ...
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 ->...
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 ...
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, ...
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'...
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 ...
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 ...
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 ...
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/...
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 ...
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 ...
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 ...
5
votes
Accepted
Magento 2 - Warm Cache Vs Cold Cache Concept (With Varnish & Redis)
After waiting on this question, I gathered some of the concept of warm and cold cache.
By caching copies of image files, CSS, and HTML documents, the origin server does not have to generate these ...
5
votes
Magento 2.3.3 Varnish problems. Magento's VCL file is not working
Based on the logs provided, a backend health check fails in Varnish for /pub/health_check.php.
If you have configured NGINX with root /path/to/magento/pub (which you should, as it's more secure), ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
varnish × 416magento2 × 229
cache × 106
full-page-cache × 61
nginx × 58
turpentine × 37
magento-1.9 × 29
magento2.3 × 24
redis × 23
magento2.4 × 19
magento-2.1 × 17
ssl × 16
apache × 15
performance × 13
https × 12
magento-1.7 × 10
apache2 × 9
caching × 9
magento-1.8 × 8
session × 8
cookie × 8
php × 7
magento2.2 × 6
fastly × 6
admin × 5