Questions tagged [varnish]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
33 views

First session add to cart action empties cart / clears session

I'm running an Nginx sandwiched Varnish backed magento 2.3.6 shop in development mode, set up like: Frontend nginx port 443, varnish port 80, backend nginx port 8080, plus redis for session cache. ...
0
votes
1answer
15 views

how to upload default.vcl from magento2 to etc/varnish/default.vcl?

I follow this steps. (https://magemastery.net/blog/how-to-configure-varnish-6-and-nginx-with-ssl-for-magento-2) I install vanish and nginx complete. Now i export default.vcl from magento2 and set ...
0
votes
2answers
20 views

Magento2: How to serve cookie-less cached version for crawlers on Varnish cache

As far as i know; magento assign a X-Magento-Vary cookie to each visitor first you visit website. So your first request always be non-cached version. After you got a X-Magento-Vary you see cached ...
0
votes
3answers
34 views

Magento Error 503 Backend fetch failed

we have an AWS hosting, suddenly we got this below issue. Error 503 Backend fetch failed Backend fetch failed Guru Meditation: XID: 65561 Varnish cache server we cant understand what's causing this ...
0
votes
2answers
21 views

Magento 2.3.3 + Varnish + Nginx + SSL + CentOS - 302 Too May Redirects

Hoping there are some Varnish guru's out there that can show me my mistake here. I'm experiencing an endless 302 redirect for both the frontend and admin. Here is my configuration: Nginx Configuration ...
0
votes
1answer
41 views

Varnish & Cloudflare on Magento 2 - issues

I'm using Varnish on my Magento 2.4.1. I've enabled Cloudlfare now, it works well but when I do some changes on the backend (like adding text on category pages, etc), it is not reflecting on the ...
1
vote
1answer
42 views

Magento with Varnish - var/cache folder still being used

I have a Magento store configured with Varnish. When everything is up to date site is fast. If I change something in the backend it doesn't get reflected on frontend unless I manually delete var/cache/...
0
votes
1answer
38 views

Updating products on backend doesn't reflect on frontend

I have this magento store I just installed and configured according to guides Varnish cache. Website now is blazing fast, but if I update a product (for example, add a description), even if I cache ...
0
votes
0answers
7 views

Configurable product is showing varation for for first time but then variation is not shown

I am facing a weird problem , the configurable product is showing variation Some products are showing variations and some are not they are having same attributes filled up at the backend Kindly guide ...
0
votes
0answers
23 views

Error 503 Backend fetch failed in varnish cache magento

I am configuring Varnish cache in for my magento site I have followed the step from following url https://www.howtoforge.com/tutorial/how-to-install-varnish-with-nginx-on-centos-7/ But when i enter my ...
1
vote
0answers
48 views

Varnish - NGINX HTTPS (Magento 2) returns 500 Server Errors

I have configured HTTPs on Ubuntu Nginx. It works perfectly. However once I implement Varnish,apart from the homepage, all other pages/CSS and Javascript files returns 500 Server Errors. My nginx. ...
0
votes
1answer
127 views

How to cache graphQL post query using varnish in magento 2

In our project we are using graphql. All the query and the mutation are post request. I have configured the varnish with magento. But it seems that post request will be bypassed. Since all my query is ...
-1
votes
1answer
84 views

How to install varnish in Windows 10

I wants to install varnish in my windows pc. Please provide proper link or detail about varnish installation.
0
votes
2answers
138 views

Magento 2 : Installation & Varnish Test Results Failed => Class Does not exist Magento Marketplace

We have created the custom module and uploaded to Magento Marketplace and Installation & Varnish Test has been failed due to class does not exist. If the class not exists, How the Code Sniffer ...
0
votes
0answers
37 views

Magento 2.4.1 varnish cart flushed issue

I am having this major issue which forced me to bypass varnish for magento 2.4.1 instance. I use varnish 6.4 with Magento default vcl file. When you add a product in cart and then go to cart or ...
0
votes
1answer
50 views

Infrastructure setup: How to setup Varnish to work with shared cache in AWS Auto Scaling Group

What is the best infrastructure setup for M2 with varnish on AWS with Auto Scaling Group We have the following setup now Cloudflare -> ELB -> AWS Auto scaling group EC2 (+ RDS database + media ...
0
votes
1answer
154 views

Magento 2.4 Varnish error STACK OVERFLOW

I have a dockerised M2.4 installation. All worked fine with my theme and the installed extensions while working with Magento demo data. As soon as update the database with the live data I cannot get ...
0
votes
1answer
167 views

Magento 2.4 Varnish error 503

I got a copy of my Magento in another server, all checked permissions, vanilla installation, domain, but I don't find the issue, I keep seeing this error message below. Error 503 Backend fetch failed ...
0
votes
2answers
87 views

Varnish doesn't display full page with Magento 2

I'm having a weird issue while configuring Varnish with my Magento 2 store. My setup is such that I'm using a frontend server that routes the requests first to Varnish and then to Apache (as a ...
0
votes
1answer
234 views

Varnish cache always MISS on dynamic pages

Varnish doesn't seem to be working properly for dynamic pages, it always returns a MISS in the response headers whether the request is coming from the browser or the CLI (curl/wget). curl -IL -X GET '...
0
votes
1answer
74 views

Why I can't save any new CMS page or block in Magento Cloud?

I'm using Magento 2.4 and when I try to save any CMS block or page I got this screen below, saying The requested URL was rejected. How could I solve it?
0
votes
1answer
68 views

Setting varnish full page cache settings via environment variables

I'm trying to set the varnish settings through environmental variables. I have the following ones set: CONFIG__DEFAULT__SYSTEM__FULL_PAGE_CACHE__VARNISH__BACKEND_HOST: varnish-service ...
0
votes
1answer
36 views

How to add Varnish VCL rule in Magento Cloud?

I need to add a new VCL rule in my Magento Cloud 2.4, I'm using Fastly to have Varnish. How could I customize my Varnish configurations in Magento?
0
votes
0answers
27 views

Magento 2 - Varnish cache + Categories Menu (magento c:f vs -X PURGE)

Introduction Previously when Varnish cache is partially setup (but not working) the Categories navigation menu disappears. The menu shows properly now, but I have been testing Varnish configuration ...
0
votes
0answers
30 views

Magento bitnami linux Setup Varnish

I want to configure and use : https://devdocs.magento.com/guides/v2.3/config-guide/varnish/config-varnish.html for Magento in bitnami Linux Can any one guide me port no which Port No Varnish should be ...
0
votes
0answers
30 views

Magento taking 20 seconds to load

I have recently migrated our Magento 2 store to a new Instance in AWS after setting up Magento store in new instance the store loading time is increased to 22 seconds before In previous instance It ...
0
votes
2answers
378 views

Varnish Cache Magento 2 SSL offloading - X-Forwarded-Proto: https vs SSL-OFFLOADED: https

Previously (older Magento 2.2~ versions), exporting default.vcl Varnish Magento 2 configuration: Configuration -> Advanced -> System -> Full Page Cache -> Varnish Configuration : Export ...
0
votes
0answers
37 views

Magento2: Varnish Test result fail

I'm trying to submit an extension for Magento 2.4 but can't pass the "Varnish Test" stage because of the cache that can't be set up on some pages (simple-product and category): "...
0
votes
1answer
417 views

Magento 2 Gateway timeout how to resolve

I have a website on Magento 2 and when I try to access the website, it's really slow and it can take up to 2 minutes to charge a page. When I try to access the admin, either it's really slow like on ...
0
votes
1answer
169 views

Multiple Magento 2 Sites Varnish Configuration

I have a dedicated server centos 6 Apache I have different Magento 2 sites on the server with there own ip and domain. I have installed and configured Varnish for one site / ip running Magento 2 site ...
0
votes
1answer
31 views

Reg. Magento site deployment in AWS

I am new to magento stack, I have a requirement of deploying a magento based e-commerce in AWS. This site is expected to have 100,000 hits in first couple of months and within an year expected to get ...
0
votes
0answers
34 views

Magento 2 Varnish URL mismatching

I have set up a Magento web server as per below varnish (127.0.0.1:6081) -> magento 2.3 (192.168.1.250:8080) The varnish is installed in the separate host and Magento is installed in another host. ...
0
votes
1answer
79 views

Magento2 need to check if varnish cache is applied or not

How can I verify whether my Varnish Cache is properly configured or not. Here are the things that appeared page_cache is not getting regenerated Site speed as per Google page speed is improved My ...
0
votes
1answer
79 views

Magento2.3.2 & Varnish 5 Cache issue

Magento2.3.2 & Varnish Cache issue using Varnish 5.2 Following is my varnish.params VARNISH_VCL_CONF=/etc/varnish/default.vcl # Default address and port to bind to. Blank address means all IPv4 # ...
0
votes
2answers
523 views

Magento 2 Varnish issue with images

Last days was trying to investigate why my magento 2.3.5p1 instance needed for uncached pages about 10-11 secs to load, measured with timer. I identified that the issues was Porto's template mega menu ...
1
vote
0answers
64 views

Product price won't update on product page front end. Cache stuck

I have a product that has a sale price of 199.99 and an original price of 240. In my index table I can see that the price has been indexed: (catalog_product_index_price): '123', 'cust_grp', '...
2
votes
1answer
50 views

How to clean cloudways Varnish cache after cleaning statics on magento 2 side

I wrote a class that works if I call it through pure php. It looks something like this class CloudwaysAPIClient { const API_URL = "https://api.cloudways.com/api/v1"; ... public ...
3
votes
1answer
502 views

How do I properly debug the root cause of 503 errors produced by Varnish?

I'm using Magento 2.3.5 with Apache 2.4 and Varnish 6 and seeing constant 503 errors ("Backend Fetch Failed" or sometimes "Service Unavailable") in the browser's network panel when ...
1
vote
1answer
337 views

Magento 2.3.5 stop cache invalidate when work in admin

I have a magento 2.3.5p1 store. It is configured to use Varnish as FPC. Although I have set in magento admin the TTL for one week in server stats I see very low cache hit. Around 5%. I am suspecting ...
2
votes
1answer
1k views

Some pages on Magento 2 website displaying Error 502 when Varnish cache is enabled - website hosted on Ubuntu 18.04 Nginx VPS

I have installed a fresh copy of Magento 2 (2.3.5 with sample data) on a VPS which has the following stack: Ubuntu 18.04, Nginx, Mysql, and PHP 7.2 FPM. This vanilla installation worked. However, ...
0
votes
1answer
647 views

Magento2 Varnish issues with customer session and site header

Magento version: C.E 2.3.5 Varnish: varnishd (varnish-4.1.1 revision 66bb824) I am facing a very strange issue. In the admin panel, Stores -> Configuration -> Advanced -> System -> Cache -&...
1
vote
1answer
297 views

Magento2 controller_action_predispatch not working with Varnish enabled

I am using Magento version 2.3 Varnish 6 enabled Docker setup I am implementing force login on event 'controller_action_predispatch'. Below is my code: app/code/Vendor/Module/etc/frontend/events.xml ...
1
vote
1answer
162 views

Magento 2 and Varnish - Does it cache prices?

One thing I don't understand about Varnish for M2 is how it will work with prices. Especially since M2 is meant for B2B, there could be customer groups with different prices. So when user 1 (customer ...
3
votes
1answer
101 views

No ajax call made in production mode, no HITs in varnish

Please correct me if I'm wrong: According to the explanations on the web, magento should be loading pages using AJAXs and some of those calls should be cached by the varnish. I successfully ...
0
votes
1answer
224 views

Enabling Varnish gives 500 error on CMS page like Home Page, About Us, Contact Us. Other pages are working fine

I installed Varnish on my Magento 2 store. All pages such as cart page, product pages, category pages, account pages are working fine and served by Varnish perfectly. The issue is in CMS page such as ...
0
votes
1answer
221 views

Magento 2.3 with Varnish: Interval time for health check

The health check with pub/health_check.php, that is configured in the probe section of the Varnish (version 6) configuration, seems to take a couple of seconds and causes some significant CPU usage. ...
0
votes
2answers
773 views

Varnish Cache not working Magento 2.3, iginx proxy and apache2 backend webservers

I have a site setup with nginx as proxy serving an apache2 server, I'm trying to implement varnish caching. nginx is listening on 443 and 80 varnish is configured to listen on 8080 apache2 is ...
0
votes
1answer
59 views

How to keep the FormKey updated on pages with Varnish enabled?

I'm running a Magento 2.3.4 store behind a Varnish server. I can't keep the FormKey up to date in the frontend as the pages are served by the Varnish caches, so I have errors in sending the newsletter ...
0
votes
1answer
359 views

Why I see X-Magento-Cache-Debug in production mode?

I have Varnish configured in my server and my project is running in production mode, even though, I continue seeing the debug tag X-Magento-Cache-Debug in the header. According to Devdocs - Varnish ...
1
vote
1answer
301 views

Magento 2 Marketplace Varnish Test Failed Error: Your requirements could not be resolved to an installable set of packages

I have uploaded the extension on the marketplace but it's failed in varnish test. Error:- Your requirements could not be resolved to an installable set of packages. Problem 1 - Conclusion: don't ...

1
2 3 4 5
7