Questions tagged [varnish]

Denotes questions related to setup & configuration of Varnish and VCL files

Filter by
Sorted by
Tagged with
0
votes
0answers
286 views

Varnish Cache pages being Invalidated too soon Magento 2

I have setup varnish on my server and have used this with the default vcl provided by Magento 2 on my store. This has about 16,000 main pages (category, product, CMS) and want to store this all in the ...
1
vote
0answers
490 views

How to correctly setup Varnish cache on Magento 2.3 with SSL?

I am trying to configure Varnish cache on Magento 2.3 with SSL termination, but no luck so far. Here is my configuration: /etc/apache2/ports.conf Listen 8080 <IfModule ssl_module> ...
4
votes
1answer
10k views

Magento 2 - Warm Cache Vs Cold Cache Concept (With Varnish & Redis)

I want to know the concept difference between warm cache and cold cache. How do we use both these techniques effectively with varnish and Redis cache. Any help, knowledge and experience sharing ...
3
votes
2answers
1k views

Magnto 2 : varnish cache issue?

The current website running on Magento 2.2.4 CE and we have enabled varnish cache. How do we know if varnish cache is working or not in Magento 2? Please advise?
2
votes
0answers
136 views

env.php changes when enabling Varnish

app/etc/env.php has the following for cache settings: 'cache' => [ 'frontend' => [ 'default' => [ 'backend' => 'Cm_Cache_Backend_Redis', '...
2
votes
2answers
700 views

Magento 2 Varnish caching per instance

I have a Magento v2.2.6 webshop running and I want Varnish on that. Now I installed Varnish and it seems to be active. But I have a (big) problem. How Varnish should work is that it caches pages as ...
1
vote
0answers
107 views

CloudFront like reverse proxy instead Varnish

I know that CloudFront is CDN, not reverse proxy, but if I understand correctly now is possible to use CloudFront to serve everything behind it. I found few links, and seems like it is possible. For ...
0
votes
0answers
238 views

Varnish Cache Always Invalidate Every Second on API Update

Our Magento 2 are connected to third party API, and every time the there is API update the varnish are being purged. The problem starts when there is 2-3 API request every second, that's mean varnish ...
1
vote
1answer
1k views

Varnish cache not clearing from magento admin

M2 Version : 2.2.2 PHP : version : 7.1.26 Varnish version : 6.0.2 Server : Nginx I have configure varnish in my magento website it working well i have checked in frontend and and passed all ...
0
votes
1answer
142 views

How to dynamically change number of varnish servers with magento2?

I am wondering how I can dynamically increase and decrease the number of varnish instances for a Magento2 installation as needed - with an aws autoscaling group, for example. Configuring them from ...
1
vote
1answer
1k views

Magento 2: Facing issue in varnish configuration

I have installed the varnish on the server. Now I want to configure it with Magento 2 Please find the current values of all files below. Server IP: 4.1.173.181 Magento 2 Admin: Stores > ...
0
votes
3answers
574 views

Nginx + Varnish does not redirect domain to https

I performed the installation of magento2.2.6 with varnish and redis I am in trouble when I try to access the site through the domain (emporiobit.com.br) Error 503 error occurs Backend fetch failed ...
0
votes
3answers
734 views

Magento 2: How to set up varnish cache with out CSS and JS file

I have the varnish cache set up and working fast for me, but the only issue is i can't clean the CSS and JS cache. If and only if I restart the varnish cache. So I am looking for a solution that can ...
0
votes
3answers
164 views

Magento2 does varnish cache help to improve performance on development mode?

I am working on a Magento EE project and version is 2.1.15, and since we have lots of product on the products page, and takes 22s to reload the page, so i am wondering will varnish help to improve the ...
0
votes
1answer
310 views

X-Magento-Cache-Control Header Extra Variables

Has anyone else had the issue with 2.2.6 and Varnish 5, where extra variables are included in the header? My header retruns; X-Magento-Cache-Control: max-age=86400, public, s-maxage=86400, max-...
3
votes
1answer
506 views

Magento2 : Will cacheable = “false” invalidate cache in varnish cache?

I have store in Magento2 and planning to integrate varnish cache. Want to confirm if there is an issue with cacheable="false".
1
vote
1answer
3k views

X-Magento-Cache-Debug: MISS

I installed Varnish, but getting this message. Varnish cache not working. And check the var/page_cache/ directory is not empty.still have mage-tags file. i have in System > Full Page Cache > ...
2
votes
0answers
162 views

Magento 1.8 and varnish cache 4.0.5 get 404 product page issue randomly

I have used varnish cache for awhile on my Magento 1.8. It worked well for a long time until now I'm having an issue that some product URL got 404 error. It's randomly, not specify any product. And ...
1
vote
2answers
860 views

How to install and Configure Varnish in Magento 2?

How to configure varnish in magento 2? Selecting Varnish Cache in Stores Configuration is enough?
0
votes
1answer
842 views

Magento 2.2.6 Varsnish not working after complete configuration

I have configure varnish in my Magento 2.2.6 still not getting option X-Magento-Cache-Debug: HIT. Anybody know what i am missing in my configuration. Below is my default.vcl file. vcl 4.0; import ...
5
votes
7answers
4k views

Magento 2.2.5 to 2.2.6 upgrade error

When trying to upgrade from Magento 2.2.5 to 2.2.6 I've noticed some strange behavior blocking the upgrade. The first commands I did without problem are: composer require magento/product-community-...
1
vote
1answer
106 views

Question about Magento speed and adding Varnish cache

I got a task to speed up Magento 2 site. Now im facing with a huge problem. Site is hosted on shared hosting (quite good and reputable company). There is plenty of power but every shared hosting has ...
4
votes
0answers
68 views

Product's “Layout Update XML” code disappears from the site every 24 hours

I have some products with "Layout Update XML" Design updates (simple XML pointing to a template file; very basic and in the correct format). Every 24 hours after a cache flush, the code vanishes from ...
2
votes
3answers
434 views

Slow Magento 2.2.5

Good evening, my site is https://www.emporiobit.com.br it is not yet in production. I use magento 2.2.5 with varnish and redis I configured 4G for Varnish and 4G for php memory_limit, my VPS has 12gb ...
1
vote
0answers
120 views

Cache issues with logged in users Magento2

We're facing an annoying issue in Magento 2.2.5. We have customers that are attached to a customergroup with different prices. This is our scenario: User visits 2 or 3 categories and sees the regular ...
3
votes
0answers
317 views

Varnish intermittent 503 in Magento 2

I've followed the dev docs on setting up varnish, and increased the http_resp_size and http_resp_hdr_len when the daemon starts. Most of the time it's fine, but every once in a while I will get a ...
1
vote
2answers
535 views

Page doesn't contain HIT in cache header

I am publishing my magento extension but in the revision I was notified of the issue: Does anyone have any useful help?
1
vote
0answers
50 views

Category Navigation suddenly disappeared

Sorry in advance I'm not very familiar with Magento. I am working on a Magento Web Shop and one day the top navigation, where you can open the categories, just disappeared. I tried searching in the ...
0
votes
1answer
3k views

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

I am using Varnish with Magento 2. I see that cache works (but for a short time) since I have the X cache: hit. And the TTFB is really good (40ms). But I have *no-cache, must-revalidate, max-age=0* ...
8
votes
2answers
3k views

Magento 2 : Menu does not appear on home page

In Magento 2.2.4 CommunityOrEnterprise edition default menu not appear on home page when enabled Varnish Cache. Actually problem is related to Varnish Cache if I set Varnish Cache from Store -> ...
1
vote
3answers
1k views

How to use Identities for to implementing hole punching in my custom module magento 2

I tried this link link Not working for me. Any other way to achieve the hole punching.
3
votes
2answers
601 views

Magento 2.2 : How to programatically clear the varnish cache by cache tag

I need to switch the currency based on user IP location so I'm using this auto currency extension, it works only when I disabled the FPC otherwise it just cache the previous content and never gets ...
2
votes
1answer
70 views

how to create not cacheable helper method?

We have written logic to find client IP address in the custom helper. public function getIpAddress(){ .............. return $ip; } It works only at first hit after that it only displays the old ...
1
vote
0answers
386 views

Magento 2 : X-Magento-Cache-Debug:MISS, over SSL, pages are not being cached by varnish

I have configure varnish with magento 2 with the reverse proxy in apache ubuntu. But, when I see at the headers, I always get the header MISS from the host. So, page is not being cached by the ...
0
votes
0answers
319 views

Magento 2 - Which cache are required to be installed on server for best performance in Magento 2?

Magento 2 best performance which are the cache should be installed on the server for best performance of Magento 2 website in production mode? Varnish/ Redis/ Memcache which one is best option to ...
1
vote
0answers
812 views

SSL, Nginx, Varnish - Too many redirects

I know there are several questions on this issue, but no solutions seems to work for me. I have Magento 1.9 running on Nginx port 8080 and with Varnish in front running on port 80. Without SSL it's ...
0
votes
2answers
1k views

Magento 2.2 home page only 503 error on varnish

All pages are working fine and the only home page is giving error: Error 503 Backend fetch failed with varnish 4 enabled
1
vote
2answers
692 views

No varnish headers

I install varnish(5) just like here: https://devdocs.magento.com/guides/v2.2/config-guide/varnish/config-varnish.html I make test from varnish cli varnishd -d -f /etc/varnish/default.vcl start ...
1
vote
1answer
947 views

Apache reverse-proxy to serve SSL to Varnish on magento 2 - results in 503 Backend Fetch Failed

magento 2 install on a centos 7 server. with a LAMP stack (php 7) we have installed magento 2.2.3 with the virtual hosts only using SSL through port 443 and have now come to installing and ...
0
votes
3answers
2k views

Varnish purge is not working when clean the magento cache

We have successfully configured varnish in our magento website, it's working great. But the problem is varnish is not purging when we clear the cache either via admin panel or ssh command. We restart ...
-1
votes
1answer
630 views

Magento 2 redirect non-www to www nginx and varnish [duplicate]

what is the right way to redirect all http://domain traffic to https://www.domain for magento 2 on nginx and varnish server?
1
vote
1answer
1k views

Varnish - NGINX serving all resources HTTP instead of HTTPS (Magento 2) [duplicate]

I'm using an Ubuntu / NGINX server configuration. Followed the directions found here: https://www.rosehosting.com/blog/magento-2-with-redis-varnish-and-nginx-as-ssl-termination/ I installed the SSL ...
2
votes
0answers
525 views

Is it possible to refresh the varnish cache programmatically in Magento 2?

I am looking for code that can clear varnish cache in Magento2. Need in the PHP script. It should not be manual.
2
votes
0answers
109 views

Varnish cache top navigation menu [closed]

Well first of all We have using the Porto theme and using the mega menu. we currently running magento 2.2.3. It's seems that when we Enabled varnish on my Current Magento and configure everything ...
3
votes
0answers
1k views

Error 503 Backend fetch failed Backend fetch failed Guru Meditation: XID: 45654 Varnish cache server

we are using MAgento 2.1 and elastic suite ,rediss cache and varnish cache 4 so we have 60 K products in our site and recently we updated attribute in magento2 admin from that day onwords we are ...
0
votes
1answer
1k views

Magento 2 Incorrect dependency in class already exists in context object

I created a extension submitted for approval On my local there is Varnish cashe enabled but sudo php bin/magento setup:di:compile runs without any error. I got 6 errors in Technical Report ...
3
votes
4answers
5k views

Catalog Product Media Cache 44 gb

My magento 2.2 site has stopped running because the server instance it is hosted on has run out of storage space, I have looked into what is causing this and found that the pub/media/catalog/product/...
1
vote
1answer
2k views

How to cache Magento 2 with Varnish

Having setup Magento 2, after looking at response headers and the page itself i think that any page is not cacheable without a lot of work. I am not a Magento developer just a guy that was requested ...
5
votes
2answers
2k views

Magento 2 - After adding to cart, cart page showing empty

I have a magento 2 website and I am facing an issue where After you add to cart, cart page is showing empty. It's not happening all the time but most of the customers are facing this issue. Thanks
1
vote
0answers
83 views

Browser History back() Method decreases minicart quantity

We have discovered an interesting phenomenon with browsers history. When I add some products from several product pages to the basket then the minicart at top will always update and shows me the ...

1 2
3
4 5
7