Home
/
Other Applications
/
How to optimize Magento?

How to optimize Magento?

Speeding up Magento is not always an easy task and commercial extensions for this purpose are expensive. That’s why we will offer you some easy to follow steps which can significantly increase your Magento performance:

Enable Leverage browser caching:

Modify the .htaccess file of your Magento with the expires headers from this article. This file can be modified via FTP, SSH, or File Manager in Site Tools.

By doing so your pages will load faster for your visitors and so will other pages that share the same cached resources.

Combine CSS and JS files:

This is a built-in feature in Magento and can be done from the Administrative end of your website. Go to Stores > Configuration > Advanced > Developer. Under Javascript Settings (from the Merge Javascript Files drop-down) click YES.
Go to CSS Settings > Merge CSS Files drop-down list select YES.

The last step is to clear the cache of your Magento.

Enable Flat Catalog:

You can enable this from the Magento administrator interface. Enabling the Flat Catalog for Products and Categories merges product data into one table, thereby improving performance:

Go to Stores > Configuration > Catalog > Catalog. Select Storefront. Choose YES for Use Flat Catalog Product and Use Flat Catalog Category.

Once enabled, clear the cache of your Magento.

Clean the database of your Magento shop:

Magento maintains several database tables for logging. It has a built-in mechanism for cleaning these logs regularly, but this feature is disabled by default.

Alternatively, you can clean these logs by accessing your phpMyAdmin in Site Tools, navigate to the Magento database and Empty the following tables:

dataflow_batch_export
dataflow_batch_import
log_customer
log_quote
log_summary
log_summary_type
log_url
log_url_info
log_visitor
log_visitor_info
log_visitor_online
report_viewed_product_index
report_compared_product_index
report_event

Note: We highly recommend you to regularly perform such database maintenance in order to improve the performance of your Magento website.

Enable Memcached

Magento websites write a lot of data and objects in their database and it is always recommended to use Memcached. It should provide a great boost in the database calls your Magento makes. You can check our tutorial for more information on how to enable the Memcached service.

Activate Magento Compiler

You can enable Magento Compiler via using SSH connection. Once connected execute the following command:

bin/magento setup:di:compile

This option compiles all Magento installation files and creates a single include path. It will speed up pages 25-50% according to the official documentation.

However, enabling the compiler may cause some issues such as reporting missing php files which cannot be included. This may force you to disable the compiler.

Enable CDN:

You can enable our custom built CDN for your domain via Site Tools as shown in our article:

How to manage your CDN through the CDN tool in Site Tools

Share This Article