# Magento Page Cache Warming

URL: https://sohaib.com/blog/magento-page-cache-warming
Author: Sohaib Khan
Published: Jan 8, 2017
Updated: Sep 8, 2026
Category: E-commerce Solutions

> Lets use a simple software to warm pages so they load faster and already in cache. Before we do anything we need to install the following software sudo apt-get install libxml-xpath-perl siege -y Now lets setup…

Lets use a simple software to warm pages so they load faster and already in cache. Before we do anything we need to install the following software

```bash
sudo apt-get install libxml-xpath-perl siege -y
```

Now lets setup Sitemap in Magento prior doing anything  - assuming that's all taken care follow the following steps.

```plaintext
cat /home/yoursite/public_html/sitemap.xml | xpath -q -e "/urlset/url/loc/text()" > /root/tmp.urls
```

If the file is not local simply run the following

```bash
curl --silent http://example.com/sitemap.xml | xpath -q -e "/urlset/url/loc/text()" > tmp.urls
```

Now let's make it warm

```plaintext
siege -v -c 1 -r `cat tmp.urls | wc -l` -f /root/tmp.urls
```

That's it.
