You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/hypernode-platform/varnish/improving-varnish-hit-rate-on-hypernode.md
+41-19Lines changed: 41 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,9 @@
1
1
---
2
2
myst:
3
3
html_meta:
4
-
description: Learn how to improve your Varnish cache hit rate on Hypernode by identifying automatic cache purges, analyzing hit/miss patterns, and optimizing URL normalization to boost performance and efficiency.
4
+
description: Learn how to improve your Varnish cache hit rate on Hypernode
5
+
by identifying automatic cache purges, analyzing hit/miss patterns, and
6
+
optimizing URL normalization to boost performance and efficiency.
5
7
title: Improving Varnish Cache Hit Rate on Hypernode
6
8
---
7
9
@@ -17,13 +19,15 @@ This guide takes you step-by-step from verifying that your cache is active to di
17
19
## Before You Begin
18
20
19
21
Typical cache hit rates:
20
-
-**Below 10%** → Cache is barely reused
21
-
-**30–70%** → Improvement possible (depends on shop type and traffic patterns)
22
-
-**Above 80%** → Generally healthy for most shops
22
+
23
+
-**Below 10%** → Cache is barely reused
24
+
-**30–70%** → Improvement possible (depends on shop type and traffic patterns)
25
+
-**Above 80%** → Generally healthy for most shops
23
26
24
27
Keep in mind:
25
-
- Staging environments typically have low hit rates
26
-
- B2B webshops often have lower hit rates due to personalization
28
+
29
+
- Staging environments typically have low hit rates
30
+
- B2B webshops often have lower hit rates due to personalization
27
31
- Recently flushed caches temporarily reduce hit rates until the cache warms up
28
32
29
33
Cache hit rate should always be evaluated in context. Traffic volume, personalization, and recent deployments directly affect cache reuse.
@@ -32,11 +36,11 @@ Cache hit rate should always be evaluated in context. Traffic volume, personaliz
32
36
33
37
A low hit rate does not always indicate a problem. It is normal when:
34
38
35
-
- Traffic volume is low
36
-
- The cache was recently flushed
37
-
- Most visitors are logged in
38
-
- The shop uses heavy personalization
39
-
- You are working in a staging environment
39
+
- Traffic volume is low
40
+
- The cache was recently flushed
41
+
- Most visitors are logged in
42
+
- The shop uses heavy personalization
43
+
- You are working in a staging environment
40
44
41
45
Investigate further only if traffic is stable, the cache is warmed up, and the hit rate remains consistently low.
42
46
@@ -46,7 +50,8 @@ Ensure Varnish is properly enabled on your vhost and configured in your
46
50
application (e.g. Magento 2).
47
51
48
52
For Magento 2, verify:
49
-
- That Varnish is enabled on the vhost
53
+
54
+
- That Varnish is enabled on the vhost
50
55
- Varnish is selected as the caching application
51
56
- The correct VCL is generated and loaded
52
57
- Full Page Cache (FPC) is enabled
@@ -60,10 +65,13 @@ Tip: The [elgentos/magento2-varnish-extended](https://github.com/elgentos/magent
60
65
## Step 2 — Check if Pages Are Being Cached
61
66
62
67
Using `varnishncsa` from the CLI to see in real time which pages are cached and which are not:
0 commit comments