How to improve category indexer performance in local development setup warden Magento 2?

If you are working with warden setup for Magento 2 local development and your category indexer taking much time to perform indexing. This article is definitely for you to improve the performance of category indexers with the warden.

I am using MariaDB for the warden and it’s taking time to perform category indexer.

You need to set a few database variable configurations in the warden-env.yml file to fix the catalog category indexer speed-up issue: Continue reading “How to improve category indexer performance in local development setup warden Magento 2?”

How to setup stores and website using config.php file Magento 2?

config.php file in Magento contains the list of installed modules, Website, Store related setup, Locales, and system configuration settings.

You can see the config.php file location at the given path, app/etc/config.php

I will just highlight the Scopes section of the config file.

There will be different sections to be used within the config.php file.h

1. modules (Out of the box modules section contains the List of Modules available.)
2. scopes (This section contains the stores, store groups, and websites related information.)
3. system (This section is used to set system configuration value.)
4. themes (This section is used to setup themes related information.) Continue reading “How to setup stores and website using config.php file Magento 2?”

How to use retry functionality of specific failed API call by use of PHP Magento 2?

You can use retry functionality to re-use your existing API call while you deal with some third-party API access.

If your request failed and you want to give more chances to connect with third-party API, you can use the retry functionality to wait up to a few seconds before throwing an error for an API call.

I have given a demo to call specific API up to three times based on the delay of 5 seconds, 10 seconds, and 15 seconds. Continue reading “How to use retry functionality of specific failed API call by use of PHP Magento 2?”