Implementing CDN on Magento

Table of ContentsAdd the vhost Configuring CORS headers Configure the store settings Magento 1 Magento 2Once you have configured your DNS, the next step is to configure the application itself to use the CDN. Add the vhost For your respective stack and store, add a new vhost in the format "cdn.example.com" (replace example.com accordingly). Configuring … Continue reading

Purging OpCache

Table of ContentsPurging Example ResponseThe use of OpCache on MageStack is sparing and not aggressive. Which means that it will maintain its own cache contents, updating the entries as necessary, instantly. It is extremely rare that you'll ever need to clear OpCache except in two circumstances, If you use a symlink for the root directory … Continue reading

Configuring auto-scaling

Table of ContentsEnabling auto-scaling Overflow CreditsYou can now enable auto-scaling on your stack, giving you full control over how many overflows are provisioned at any time, how many are provisioned within a single month and how long they should be provisioned for. Auto-scaling is disabled by default, but a feature you can turn on very … Continue reading

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 Magento 2 versions lower than 2.3.4 Magento 2.3.5+ and greater: 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 … Continue reading

Purging Varnish

Table of ContentsPurging Single Domain All domains Sample PHP script (For Magento 1 only)Varnish 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 … 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