Questions tagged [varnish]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
47 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
24 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 ...
2
votes
1answer
19 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
41 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 ...
0
votes
1answer
50 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
25 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
24 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
27 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
95 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
37 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
32 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
68 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
27 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
40 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
138 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 ...
0
votes
1answer
21 views

How to configure Varnish in Magento 2 admin?

I've my Magento 2 installed in Cloudways with Varnish enabled, I'm sure that Varnish is well configured because it works in other projects and I can't change the configuration, I'm using the default ...
0
votes
1answer
24 views

Image randomly missing with Varnish on Magento2

I'm currently struggling into getting the correct configuration for my M2 shop and i can't figure out on how to troubleshoot this. On some images, varnish backend is randomly returning 503 backend ...
0
votes
1answer
48 views

Top Nav menu not showing after vanrish cache flush

For a long time I've been having an issue with the top navigation bar in Magento 2.3 not showing the first time a page is requested after varnish cache is cleared. On subsequent requests of the same ...
0
votes
0answers
17 views

Magento 1.9 - Varnish, nginx and redirects (http -> https and non-www to www)

trying to redirect all non-www traffic to www and all http traffic to https. Environment is Magento 1.9 with Varnish and nginx. We also have Cloudflare (fully SSL enabled). Using the code below in ...
0
votes
0answers
12 views

User session mixed up when varnish is enabled

In my magneto 2.3 session, I am saving & retrieving some data in `checkout/session. Sometimes, user session gets mixed up(Gets data from another customer's session) but it's working FPC(Varnish) ...
0
votes
1answer
67 views

Magento 2 Product Detailed Page(PDP) Varnish PageCache Test Failed

I've created some Magento2 Extension, I've uploaded those code into the Magento2 Market place. In that market place, there has some kind of code validation procedure, and I've written my code as per ...
0
votes
2answers
19 views

How to setup and configure perfect webserver on centos for magento2

I want to Build a new AWS EC2 centos webserver with the best configuration for Magento2 ? there is any clear steps or script? Regards, Ahmed
0
votes
0answers
18 views

What is the correct way of flushing cache by TAG programmatically? (including Varnish)

I've been looking for a correct way of flushing cache by tag programmatically and have found 2 different solutions when it comes to CMS Pages: Using the CacheInterface as described here, which ...
0
votes
1answer
46 views

Varnish is cached but Google Chrome showing not cached?

I have installed Varnish and configured it as per as the guideline. And when I try it curl -I https://d-o-m-a-i-n.com I get following which seems its working correctly. HTTP/1.1 200 OK Date: Sat, 28 ...
0
votes
0answers
58 views

Magento 2, Varnish and logged in users

Using Magento 2 and Varnish 5, varnish works perfectly if you aren't logged in. But when logged in as a normal customer you get an 80%-90% varnish miss rate. Is there any way to use data cached in ...
0
votes
0answers
21 views

Varnish cache test error on extension upload

I have created a custom module for filter some product collection. When I try to upload this extension to Magento marketplace. I pass the reviews Marketing Review, Code Sniffer and Copy Paste ...
1
vote
1answer
159 views

Magento 2 varnish Checkout to cart Redirect Problem

Preconditions 1.Magento 2.3.4 2.Must Varnish Enable Steps to reproduce 1)Do not add any product to the cart. 2)Directly go to https://www.sample.domain/checkout/ 3)Because No product in cart ...
0
votes
4answers
472 views

Magento 2.3.4 + Varnish 6

I am having a problem with Magento open source 2.3.4 and its configuration to work with varnish 6. I have followed the devdocs about setting up varnish caching. I have verified that the varnish part ...
0
votes
1answer
22 views

Should you modify the VCL file when activating deflate Gzip on the server?

When I activate Gzip I find that my site is slow, as if Varnish was not doing its job.
0
votes
1answer
43 views

When using WebP and Varnish, should WebP be added to line 82 of the VCL file?

varnish.vcl : ... # Compression filter. See https://www.varnish-cache.org trac/wikiFAQCompression if (req.http.Accept-Encoding) { Line 82 ---- > if (req.url ~ "\.(jpg|jpeg|png|...
1
vote
2answers
50 views

References of pub in Magento 2 VCL

Are we supposed to remove reference of pub from line 67,102,206 of VCL like we remove from line 13 if the Magento root directory is pub? https://github.com/magento/magento2/commit/...
0
votes
1answer
164 views

Magento 2.3.3 - Varnish session issue

I'm having a bug with the Varnish Caching and after investigating and searching for a solution, I'm still not able to solve the problem. The FPC is working fine most of the times, but sometimes the ...
0
votes
1answer
227 views

Purge specific Link from Magento 2 Varnish

I am trying from console to purge and refresh one specific link of my magento 2 store in Varnish. I don't want to clear the whole cache but just one link. I tried: curl -X PURGE http://www.example....
0
votes
0answers
82 views

Magento2 with Varnish 6 and Cloudflare SSL termination

I have magento2 with varnish 6 setup on docker with SSL termination on CloudFlare which have cahce on its own. I want to know proper configuration of settings for: 1. Varnish - should I enable static ...
0
votes
0answers
17 views

What could cause Magento 2 FPC to get invalidated?

Without any backend operations I am seeing product and category pages getting invalidated within 24 hours. Store uses Varnish for page cache and Redis for session.
0
votes
1answer
118 views

Ajax pagination issue with Varnish

Store has Magento 2.3.3 with Varnish 6, Redis 5 and Amasty Layered navigation enabled for filtering and pagination ajax calls. After setting up above configuration, navigation through category pages. ...
0
votes
1answer
19 views

Full Page Cache not Working, no X-Magento-Cache-Debug header present

The full-page cache is not working, when switching to developer mode, there is not even an X-Magento-Cache-Debug header
0
votes
1answer
45 views

Magento 2.3.3 invalid form key frontend

Last days I have this strange issue in my Magento instance. When you are in front end catalog category page and press store view link, Magento changes to the right store view but you get message ...
0
votes
1answer
67 views

Magento 2 Varnish cache compilation failed

I configuring the Varnish cache in Magento 2.3(CE), for that I've gone through the below link. https://www.emiprotechnologies.com/technical_notes/magento-technical-notes-60/post/magento2-install-and-...
0
votes
0answers
20 views

Magento 2 | Varnish cache pages per session [duplicate]

We have a magento 2.2.6 shop, with 20k products. We use varnish for fpc. It is configured properly, and we can verify by visiting a page two times. The second time the ttf is really low. Problem is ...
0
votes
0answers
8 views

Cpanel default_https.conf overwrite with Nginx SSL termination Varnish

I have had a developer implement varnish with SSL termination on our cpanel server. Everything works fine except every so often our default_https.conf file keeps getting overwritten in /etc/nginx/conf....
1
vote
1answer
302 views

How to set page cache expires to 7 days?

I am using varnish with default magento 2.3.3 VCL and the default nginx configuration that comes with magento install. At present I see the expires is set to -1. How can I set expires to one week?
1
vote
0answers
55 views

Is the .probe line essential in a VCL file?

To make Varnish work, I need to remove this part: .probe = { .url = "/pub/health_check.php"; .timeout = 2s; .interval = 5s; .window = 10; .threshold = 5; } If I leave it, there ...
0
votes
1answer
53 views

Redirect of web setup wizard - varnish

After installing varnish, I am unable to get to Web Setup Wizard. The browser spins for a while and then I end up on https://example.com:81/setup with an error that Chrome interprets as: took too long ...
0
votes
0answers
17 views

Longer Varnish TTL for public content?

Are there any disadvantages in settings longer TTL for public content? Default is 86400. What are the disadvantages if it is set to 1 month?
0
votes
0answers
133 views

Magento 2.3 Varnish 503 Backend fetch failed

varnish server gives back error message: Error 503 Backend fetch failed Backend fetch failed Guru Meditation: XID: 131307 varnish log info: Varnish cache server # varnishlog -q 'RespStatus == ...
0
votes
0answers
76 views

Magento Progressive Web App (PWA) - how to integrate Varnish Cache?

Same as above question "How to integrate Varnish cache into PWA ?" Please give me any solutions or suggestions :))Thanks everybody for reading!
0
votes
3answers
287 views

Magento 2 Header Sign In Sign Out Issue

I have ultimo theme on magento 2.3.3 with redis and varnish. After Sign Out the link still displays Sign Out and vice versa. Becomes normal after cache is flushed. looks like cache issue. Any help ...
4
votes
3answers
617 views

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.?

I am in the process of setting up a new Magento 2.3 store with Apache, Varnish (probably Turpentine) and Redis. All requests will be via HTTPS (SSL). I recently became aware of the Litespeed Web ...
1
vote
0answers
21 views

Magento On First Load Some ESI Blocks Slow

Hi we are using Magento 1.9 with Turpentine Varnish. When varnish serves non cached pages some ESI blocks load very slow. Is there any way to diagnose and fix this issue? One of the suspected ESI ...

1
2 3 4 5
7