yireo/magento2-backend-reindexer dev-master

Magento 2 module to add reindexing to the Admin Panel

Type

magento2-module

License

OSL-3.0

Requires
Requires (dev)
Suggests

None

Provides

None

Conflicts

None

Replaces

None

Yireo BackendReindexer

Magento 2 by default has no way to reindex from within the Magento Admin Panel. This module adds a massaction to reindex from the backend anyway.

!!! WARNING !!!

From a technical point of view, there is a really good reason that Magento 2 offers no way to reindex indexes using the Magento backend: Using the Magento Admin Panel from this task may lead to timeouts, memory issues, and because of this, potential data inconsistancy (corrupt data). Make sure to know what you're doing before using this module.

The advice is to index through the CLI task and/or through cronjob. However, this module might still prove useful to small shops, testing environments with no developer present, etcetera.

Installation

Install this module within Magento 2 using composer:

composer require yireo/magento2-backend-reindexer

After this, enable the module as usual:

bin/magento module:enable Yireo_BackendReindexer
bin/magento setup:upgrade
bin/magento cache:clean

Technical architecture

  • This module adds a massaction through XML layout.
  • It also adds a Plugin to check for the right ACL rules.