Download the PHP package element119/module-indexer-deploy-config without Composer
On this page you can find all versions of the php package element119/module-indexer-deploy-config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download element119/module-indexer-deploy-config
More information about element119/module-indexer-deploy-config
Files in element119/module-indexer-deploy-config
Package module-indexer-deploy-config
Short Description A Magento 2 module that allows developers to lock indexer modes via deployment config.
License OSL-3.0
Rated 5.00 based on 1 reviews
Informations about the package module-indexer-deploy-config
element119 | Indexer Deploy Config
A Magento 2 module that allows developers to lock indexer modes via deployment config.
๐ Features
โ๏ธ Allows you to selectively lock indexer modes via the app/etc/config.php
file
โ๏ธ Indexer configuration validated and imported as part of app:config:import
โ๏ธ Supports custom indexers
โ๏ธ Provides messaging for admins to see which indexers are locked via deploy config
โ๏ธ Informs admins when they try to change indexer modes that are locked via deploy config
โ๏ธ Supports Magento Open Source and Adobe Commerce
โ๏ธ Supports Hyvรค and Luma based themes
โ๏ธ Seamless integration with Magento
โ๏ธ Built with developers and extensibility in mind to make customisations as easy as possible
โ๏ธ Installable via Composer
๐ Installation
Run the following command to install this module:
โซ Updating
Run the following command to update this module:
โ Uninstallation
Run the following command to uninstall this module:
๐ User Guide
Locking Indexer Modes
- Add a new
indexers
array to theapp/etc/config.php
file - Add the
realtime
orschedule
arrays to theindexers
array as required - Specify the indexer IDs you want to lock to a specific mode within the respective mode array
Example
Note
Empty indexer mode arrays may be omitted in the cases where you don't want to lock any indexers to that mode.
Indexer Mode Locking Cron Fallback
A new system configuration option allows you to enable a cron job that will ensure indexers are in the mode they are
supposed to be in, according to deployment config. This option can be found in Stores -> Configuration -> Advanced -> System -> Indexer Mode Locking
.
indexer:lock-all
Command
The module adds a new indexer:lock-all
command that you can use to lock the indexer modes via the command line.
Note
You will need to run
app:config:import
after indexer modes have been set, unset, or changed in the deploy config.Due to the fact that this new command writes to the deploy config files and this module makes additions to the deploy config pool, any automated deployment pipelines will need to run
app:config:import
in non-interactive mode by passing either-n
or--no-interaction
as command options to avoid the usual prompt.
No arguments locks the indexer modes to their current state.
Passing -m realtime
as the argument sets all indexers to Update on Save
.
Passing -m schedule
as the argument sets all indexers to Update by Schedule
.