Implementing Elasticsearch

Table of ContentsDefault configuration settingsThere is native support for Elasticsearch on MageStack. Default configuration settings The configuration settings for Magento are as follows Host: search1.i Port: 9200

Implementing Varnish on Magento 2

Table of ContentsStore Configuration Nginx Configuration Dynamic Content Semi-Static Content Static ContentMagento 2 comes with native Varnish support, so it is not necessary to install any supporting dependencies like on Magento 1. You just need to add the respective configuration to the Nginx configuration files. There are three parts to enabling Varnish on a Magento … Continue reading

Implementing Redis on Magento 2

Table of ContentsCache and full page cache storage Session storageMagento 2 comes with native Redis support, so it is not necessary to install any supporting dependencies like on Magento 1. You just need to add the respective configuration to the Magento ./app/etc/env.php Cache and full page cache storage There's three elements to add for Redis; … Continue reading

Purging Varnish

Table of ContentsPurging Single Domain All domains Sample PHP scriptVarnish as a rule will maintain its own cache contents, updating the entries as necessary. As with any cache, it isn't recommended to manually clear the cache - as it will reduce its effectiveness. However, if you need to instantly clear the cache, it can be … Continue reading

Optimal Varnish Configuration

Table of ContentsDynamic Content Static Content Semi-Static ContentWe know there can be some confusion in the most optimal settings for a store running Varnish, below you'll find configurations (continually updated) to reflect the most optimal configuration. Dynamic Content In ___general/example.com.conf, be sure to replace, lb1.i example.com # Enable If-Modified-Since set $magestack_last_modified true; # Enable Varnish … Continue reading

Image Optimiser

Table of ContentsExamples Running a lossless optimise on a single directory Running a lossy optimise on a single directory Running optimise on multiple directories Running optimise via cronThere is a native tool in MageStack to losslessly optimise images. This means images use less disk space and are served to the customer faster - without losing … Continue reading

Optimal Static Content Subdomain Configuration

Table of ContentsConfigure DNS Records Create Subdomains/Vhosts Change Magento URLs Secure the vhost Strip Cookies From FilesUsing subdomains for serving static content on your store will improve both performance and cacheability of static assets. Making this change is very straightforward and can be completed in a few minutes. In this example, we'll assume the domain … Continue reading

Implementing CloudFlare/Incapsula

Table of ContentsCaveat emptorCloudFlare and Incapsula are a popular utilities for providing website secrecy, content delivery and DOS (denial of service) mitigation. MageStack natively supports these services, no server-side configuration is required to facilitate correct pass through of IP addresses. The server $_SERVER['REMOTE_ADDR'] is correctly maintained throughout all layers in MageStack (read more about server … Continue reading

Purging PageSpeed

Table of ContentsPurging Purge single URL Purge entire cache Multi web serverPageSpeed as a rule will maintain its own cache contents, updating the entries as necessary. As with any cache, it isn't recommended to manually clear the cache - as it will reduce its effectiveness. However, if you need to instantly clear the cache, it … Continue reading

Implementing Varnish on Magento 1

Table of ContentsIs Varnish right for you? Implementation Automated installerIs Varnish right for you? Varnish isn’t the be-all and end-all of Magento performance. Its great to offset load from bots & window-shoppers – but it shouldn’t be your first port of call to actually making your store faster. Implementing Varnish should be the last performance … Continue reading