Amasty Resolution Center

How does the Full Page Cache Warmer extension work with Varnish Cache?

  The Full Page Cache Warmer doesn't handle the cache, it just warms the pages by imitating the entrance of the real person on the website.
      The Full Page Cache Warmer extension is compatible with the Varnish. By default, the extension works with the Magento cache table and takes URLs from the url_rewrite table in order to warm them.
      The extension sends requests to the Varnish and if the page is not cached the extension will warm it. Varnish stores (or caches) files or fragments of files in memory; this enables Varnish to reduce the response time and network bandwidth consumption on future, equivalent requests. Unlike web servers like Apache and Nginx, Varnish was designed for use exclusively with the HTTP protocol. The following figure shows a basic view of Varnish in the Magento topology:


      As you can see there is a gap between Magento and users' requests. This gap is filled by Varnish.
      In the preceding figure, users’ HTTP requests over the internet result in numerous requests for CSS, HTML, JavaScript, and images (referred to collectively as assets). Varnish sits in front of the webserver and proxies these requests to the webserver.
      As the webserver returns assets, cacheable assets are stored in Varnish. Any subsequent requests for those assets are fulfilled by Varnish (meaning, the requests don’t reach the webserver). Varnish returns cached content extremely quickly. The results are faster response times to return the content to users and a reduced number of requests that must be fulfilled by Magento.
      According to the above, the Warmer extension is not able to identify whether the page is cached since the cache is being stored in Varnish, and on the storefront, Varnish cache status is always displayed as "Miss".


      • Related Articles

      • How many pages the Full Page Cache Warmer extension warms per hour?

              It is hard to provide the exact number of pages that the Full Page Cache Warmer extension can warm per hour as the warming speed fully depends on the server performance. However, you may get the approximate number of pages by dividing 3600 (an ...
      • What do I choose: Google Page Speed optimizer or Full Page Cache?

              If you would like to increase the page upload speed, it is advised to use our Full Page Cache Warmer extension for Magento 2. The warmer emulates visitor behavior, and timely warms up pages' cache so that your customers and Googlebot always get ...
      • Does WebP work with Varnish?

              WebP images are compatible with the Varnish cache. The compatibility was introduced to the module in version 2.1.2. Make sure that you have the latest version of the extension installed.       To make WebP images load on the website, it is ...
      • Is the GeoIP Redirect module compatible with Varnish?

              The GeoIP Redirect extension is not compatible with the Varnish cache out of the box. It requires the users to see a newly loaded page instead of a cached one for the module to recognize the IP address and forward the user to the specified ...
      • How the Abandoned Cart Email extension works for guests?

              The Abandoned Cart Email extension works for guest customers in the cases when a customer enters the email on the checkout page but then interrupts the checkout process. The extension captures the entered email with AJAX and immediately saves ...
      • Announcements

      • Q4 roadmap

              The results of Q3 are summed up, so let’s check what new features and updates are coming next quarter. There’s a variety of interesting things!       New module features plans. Amasty always strives to deliver new functionality according to the
      • Q3 results

              September was especially productive for our team, so we will be glad to share the news from the first autumn month and sum up what has been done during the whole Q3.               Extension updates. Here is the list of new important features and
      • August results

              The last month of summer is over, so we're giving you a recap of key updates the Amasty team has provided in August.        Extension Updates. Apart from slight changes related to fixes and improvements, we added new features to some modules: Reward
      • July: done

              A new portion of updates by the end of July. The first month of Q3 is over, let’s check what was done.       Starting with previous debts: in June we managed to publish important updates for ILN and Pre Order modules, as well as provide tariff solutions
      • May results

              Within the past month, the Amasty team worked hard and managed to produce new great modules for your stores and new features and tech updates. Details and links below. New modules: Custom Reports Builder Import Customers Delivery Date Manager Module