8 Ways to Improve the Performance of a 1C-Bitrix Website
Every week, our support receives complaints about slow download speeds. In 99.9% of cases, it turns out that the problem lies in weak hosting and incorrect settings. We tell you what to do if the website or online store slows down, and how to correctly diagnose and increase productivity yourself - so that it flies.
1. Evaluate performance
2. Switch to PHP8
The seventh version of PHP has been released. It was developed with an emphasis on increasing productivity and reducing memory consumption. Tests convincingly show this (example 1, example 2) - the increase in performance after switching to a new core is from 40%!
To sit on old versions of PHP is to complicate the user's life and make the Internet worse. If your hosting doesn't support PHP8, change it (like this one with free migration). If your site doesn't support PHP8, please fix it immediately.
3. Configure caching
Using composite and autocomposite is good and right. But just turning them on is half the battle. To get a noticeable increase in speed, you need to correctly set the lifetime of the cache depending on the frequency of data updates on the site and traffic.
How not to:
Leave the default settings (120 seconds).\nWhy does the first visitor go to the product page. The cache is being created. The second visitor comes to the site in an hour. The cache needs to be formed anew - its time has expired. As a result, the cache is generated every time the page is opened.\nThere is not just an increase in performance and speed - it even decreases.\nDo not correlate the lifetime of the cache with the frequency of data updates on the site and site visits.\nSet caching time for individual sections (news, articles).\nAs necessary - depending on the frequency of data updates and site visits:\nPrices on the site are updated manually or several times a week. Recommended caching time: at least 172 800 seconds (2 days)
4. Create the facet indices for the smart filter
Facet indices speed up the smart filter. Usually, a smart filter needs to go through all the products in the catalog and compare their properties with the given parameters. If there are many products, this process may take some time. Facet, on the other hand, pre-calculates and compiles options for requests, stores them in the system and issues them upon request.\nIn words, everything is great, but in reality, not so much: facets are rarely created and used. Try it and compare the download speed of the filtering results. Instructions in our documentation
5. Analyze and create indexes on the database
Indexes are analyzed and created here: Settings → Performance → Indexes → Index Analysis.\nClick the button "Perform analysis of collected SQL queries". If the indicators are green, everything is fine: the indexes have been created. If the indicators are yellow, create them yourself. Instructions in the 1C-Bitrix manuals
6. Turn off unused modules.
When initializing the 1C-Bitrix kernel, a large list of modules is connected. They take resources, but at the same time they are not necessary for the full operation of the site. We disable redundant modules - we get an increase in productivity. Before doing this, be sure to make a backup copy of the site.\nWhich modules are rarely used and can be disabled without affecting the site:\nAD/LDAP integration (ldap)\nPush and Pull (pull)\nWiki (wiki)\nA/B testing (abtest)\nWeb analytics (statistic)\nWeb cluster (cluster)\nWeb messenger (im)\nWeb services (webservice)\nBusiness process designer (bizprocdesigner)\nDocument flow (workflow)\nEvent calendar Report designer (report)\nIdea manager (idea)\nMobile platform (mobileapp) - if no mobile application is connected\nMobile application for online store (eshopapp) - if no mobile application is connected\nLearning (learning)\nTranslate (translate)\nMail (mail)\nTechnical support (support)\nUniversal lists (lists)\nScaling management (scale).
How to do it: Go to the Plugins settings Desktop → Settings → Product Settings → Plugins and turn off the extra ones. Instructions in the knowledge base
7. Configure CDN
Another ambiguous thing that can speed up the site and make it slow down nicely. What is it? Theory:\n"Site Acceleration Module (CDN), which allows you to load all static content of your site (images, CSS style files, js scripts) through a content distribution network (Content Delivery Network or Content Distribution Network, CDN). Thus, a significant part of the site's resources is downloaded by the visitor from the server closest to him. This allows you to increase the speed of loading pages up to several times. Also, CDN connection reduces the load on the site's main servers. Since all static content is downloaded by visitors to your site not directly from servers, but from CDN nodes that are able to cache content very efficiently, the number of calls directly to your servers is reduced" (from here)\nThe CDN is configured here: Settings → Cloud 1C-Bitrix → Site acceleration (CDN).\nPractice\nNot everything is so clear: for some, the included CDN gives a real increase in performance, and for someone, on the contrary, it reduces the download speed site There is only one way out: to test and measure the results.
8. Enable merging and compression of CSS and JS files




Post's Author




