Cache Management

Table of ContentsMode Production stores Development/Staging stores Warning on cache management Admin notices 3rd party cache modulesIn Magento caches exist to reduce hardware utilisation for frequently requested content. The admin is never cached The frontend utilises many different caches The … Continue reading

Index Management

Table of ContentsMode Production stores Magento 1 only Development/Staging stores Warning on manual reindexing Admin notices 3rd party indexing modulesIn Magento there is a complex relationship between the data stored in the admin and what is presented on the frontend. … Continue reading

Markdown Help

For a line break, you must end the previous line with two spaces. When pasting a chunk of code, wrap it in four tildes ~~~~ ~~~~ code goes here ~~~~ To quote, start it with a right arrow > >Here's … 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 … Continue reading

Implementing Vary:User-Agent

MageStack natively supports the Vary: User-Agent header, however, as it isn't a setting applicable to all stores, it is disabled by default. To enable the User-Agent vary header, you only need to set a single variable in your vhosts configuration, … Continue reading

PCI-DSS SAQ & Responsibility Matrix

Table of ContentsPhysical Architecture SAQ AnswersPCI Compliance is a merchants responsibility. Some questions within your SAQ relate to infrastructure/server configuration, for which you can find the scope and appropriate answer below. Physical Architecture SAQ Answers Section Scope Response Condition 1.1.1 … Continue reading

Rate Limiting Requests

Table of ContentsOptions Enabling Custom Rate Limiter Examples Rate limit AJAX search to 1 request per 10 seconds Rate limit AJAX search to 1 request per 10 seconds, but whitelist given IPs Rate limit AJAX search to 1 request per … Continue reading

Installing Composer

Table of ContentsInstallationSonassi natively supports Composer, you can install and run composer in the conventional way for Linux for a global installation. Installation Composer is installed globally using the default installation method. cd /home/www-data curl -sS https://getcomposer.org/installer | php -- … Continue reading

Reset File Permissions

Table of ContentsBasic permissions Advanced permissions Enable advanced permissions Disable advanced permissions Using hooks Examples Basic: Reset permissions for example.com Advanced: Reset permissions for all domains-groups/vhosts Using a post-completion script for WordPress UploadsMageStack provides extremely consistent file permissions across all … Continue reading

Securing your Magento Store

Magento is a secure application out-of-the-box, but it should be supplemented by further measures to ensure it is as secure as possible. Below is a series of steps on securing/hardening your Magento store. Do not use the root account or … Continue reading