定制 mage2kishan/module-indexer-manager 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mage2kishan/module-indexer-manager

Composer 安装命令:

composer require mage2kishan/module-indexer-manager

包简介

Panth Indexer Manager — reindex Magento 2 from the admin with strategy options (sync, queue, on-save) and per-indexer live tracking, status history, and run logs.

README 文档

README

Magento 2 Indexer Manager: Reindex from Admin with Live Tracking and Run Log (Hyva + Luma)

Magento 2.4.4 - 2.4.8 PHP 8.1 - 8.4 Hyva + Luma Live Demo & Details Packagist Upwork Top Rated Plus Website

Reindex Magento 2 from the admin without opening a terminal. Panth Indexer Manager adds per-row Reindex and View buttons to Magento's native Index Management page, plus mass actions, a one-click mode toggle, live status polling, and a full run log that captures every reindex from admin, CLI, cron, and API calls.

Product page: kishansavaliya.com/magento-2-indexer-manager.html

Panth Indexer Manager — Magento 2 admin Reindex panel

Quick Answer

What is Panth Indexer Manager? It is a Magento 2 admin extension that adds reindex buttons and a run history log to the native Index Management page, so store owners and content editors can reindex without SSH access.

What does it add to my store?

  • A per-row Reindex button and a View details modal on every indexer in the grid.
  • Three mass action buttons: Reindex Selected, Reindex All, and Reindex Invalid.
  • A one-click mode toggle to flip an indexer between Update by Schedule and Update on Save.
  • Live status polling every 5 seconds with a manual Refresh button.
  • A Run Log that records every reindex (admin, CLI, cron, or API) with duration, context, and error messages.
  • Email alerts when a reindex fails.

Which themes are supported? This module is admin-only and does not touch the storefront, so it works the same on Hyva, Luma, or any custom theme.

What does it need? Magento 2.4.4 to 2.4.8, PHP 8.1 to 8.4, and the free mage2kishan/module-core package.

🚀 Need Custom Magento 2 Development?

Get a free quote for your project in 24 hours for custom modules, Hyva themes, performance work, M1 to M2 migrations, and Adobe Commerce Cloud.

Get a Free Quote

🏆 Kishan Savaliya

Top Rated Plus on Upwork

Hire on Upwork

100% Job Success • 10+ Years Magento Experience Adobe Certified • Hyva Specialist

🏢 Panth Infotech Agency

Magento Development Team

Visit Agency

Custom Modules • Theme Design • Migrations Performance • SEO • Adobe Commerce Cloud

Visit our website: kishansavaliya.com  |  Get a quote: kishansavaliya.com/get-quote

Table of Contents

Who Is It For

  • Store owners and operations teams who need to reindex after a content change but should not need SSH or CLI access to do it.
  • Content editors and merchandisers who save category changes, update prices, or modify tax rules and then need to flush a specific indexer without calling a developer.
  • Developers and DevOps teams who want a full audit trail of every reindex across admin, CLI, cron, and API so they can debug failures and track timing.
  • High-traffic stores that use the queue strategy to push long reindexes to a background consumer instead of blocking the admin request.
  • Any Magento store that wants email alerts when a reindex throws an error, without checking log files manually.

Key Features

Reindex Buttons on the Admin Grid

  • Per-row Reindex button on every indexer in the native System → Index Management grid.
  • Per-row View button that opens a details modal with status, schedule, backlog count, and the last 10 tracked runs for that indexer.
  • Optimistic UI - the affected rows flip to PROCESSING with a spinner the moment you click, so you know the action registered.
  • Top-right toast notifications for every action, whether success or error.

Manage Indexers grid with Last Tracked Run and Actions columns

Mass Actions

  • Reindex Selected runs only the rows you have ticked.
  • Reindex All runs all indexers in one shot.
  • Reindex Invalid runs only the indexers currently in Reindex required state.
  • All three buttons sit in a toolbar injected next to the native Actions dropdown, so nothing is hidden.

One-Click Mode Toggle

  • Click any Mode cell to flip an indexer between Update by Schedule and Update on Save without opening any dropdown or reloading the page.

Mode cell flipped from Schedule to On Save with a single click

Live Status Polling

  • The grid polls for status updates every 5 seconds with a green pulsing indicator.
  • A manual Refresh now button and a Updated HH:MM:SS timestamp are always visible.

Full Run Log

  • Every reindex in the system is captured - admin clicks, CLI commands, cron schedule runs, and programmatic API calls - all recorded by a plugin around Magento\Indexer\Model\Indexer.
  • The Run Log grid shows Started, Indexer, Operation, Context, Status, Duration, Admin User, and Message.
  • Error messages are stored in full so you can debug without reproducing the failure.
  • One-click Clear Log to wipe all entries.

Indexer Run Log - paginated grid with success and error badges

Reindex Strategies

  • Standard (synchronous) - runs reindex in the request thread and returns when finished. This is the default and matches Magento's built-in behavior.
  • Queue (deferred) - publishes to the panth.indexer_manager.reindex message-queue topic. The admin gets a "queued" toast immediately and the reindex runs in the background via a consumer.

Retention and Email Alerts

  • Daily retention cron prunes old log entries by age. Set to 0 to keep forever.
  • Failures-only mode skips successful runs so the log stays small.
  • Failure email alerts send an HTML email with indexer ID, context, admin user, duration, and the full error message when a reindex throws an exception.

Built to Last

  • MEQP-style code with strict types, typed properties, PSR-4 autoloading, and no var_dump.
  • No core overrides - extends Magento's native grid via layout XML, column renderers, and a thin JS enhancer.
  • ACL-aware with three resources (manage, log, config) under Panth Extensions.
  • Translatable - every label uses Magento's __() function and ships with i18n/en_US.csv.

Compatibility

Requirement Versions Supported
Magento Open Source 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce Cloud 2.4.4 to 2.4.8
PHP 8.1.x, 8.2.x, 8.3.x, 8.4.x
MySQL 8.0+
MariaDB 10.4+
Hyva Theme Admin-only, no storefront impact
Luma Theme Admin-only, no storefront impact
Required Dependency mage2kishan/module-core (free)

Installation

Composer Installation (Recommended)

composer require mage2kishan/module-indexer-manager
bin/magento module:enable Panth_Core Panth_IndexerManager
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush

Manual Installation via ZIP

  1. Download the latest release from Packagist or from the product page.
  2. Extract it to app/code/Panth/IndexerManager/ in your Magento install.
  3. Make sure Panth_Core is installed too (required dependency).
  4. Run the commands above starting from bin/magento module:enable.

Verify Installation

bin/magento module:status Panth_IndexerManager
# Expected: Module is enabled

After install, open:

Admin → Panth Infotech → Indexer Manager → Index Management

Configuration

Go to Stores → Configuration → Panth Extensions → Indexer Manager.

Configuration page - General, Live Tracking, Notifications

Setting Group Default Description
Enable Indexer Manager General Yes Master switch. When off, run tracking and email notifications are skipped.
Reindex Strategy General Standard Standard runs reindex synchronously in the request. Queue dispatches to the message queue and requires the consumer to be running.
Track Reindex Runs Live Tracking Yes Persist start and end time, duration, status, and message of every indexer run into the panth_indexer_manager_run_log table.
Log Failures Only Live Tracking No Skip successful runs to keep the log small.
Log Retention (days) Live Tracking 30 Cron prunes entries older than this every day at 03:00. Use 0 to keep forever.
Email on Reindex Failure Notifications No When Yes, send an email each time a tracked reindex throws an exception.
Notification Email Notifications (empty) Comma-separated list of recipient email addresses.

All settings apply at the default scope only (indexers are global in Magento).

How It Works

  1. The module injects a toolbar and extra columns into Magento's native Index Management grid via layout XML and column renderers.
  2. When you click a Reindex button, a JavaScript handler sends a POST to the Run controller.
  3. The controller calls IndexerInterface::reindexAll() directly (Standard strategy) or publishes a message to the queue (Queue strategy).
  4. A plugin around IndexerInterface intercepts every reindex regardless of origin - admin, CLI, cron, or API - and writes a row to panth_indexer_manager_run_log with the operation, context, status, duration, and any error message.
  5. The Status controller returns a JSON payload for the live polling loop. The grid updates the affected rows every 5 seconds.
  6. When a run fails and notifications are enabled, an HTML email is dispatched with the full error detail.

View Details Modal

Click View on any row to see:

  • ID, Description, Mode, Status, Schedule status, Backlog count, Last update.
  • A table of the last 10 tracked runs for that indexer, with Started, Status badge, Duration, Context, Admin User, and the full error message in a code block.

View modal - indexer details and last 10 runs

Run Log Page

Open Admin → Panth Infotech → Indexer Manager → Run Log.

  • 10 entries per page, newest first.
  • Status badges: SUCCESS (green), ERROR (red), RUNNING (yellow).
  • Error messages in monospace code blocks.
  • Go to Index Management and Clear Log buttons at the top right.

Run Log and Retention

The panth_indexer_manager_run_log table stores every captured run.

Column Type Notes
log_id int unsigned Primary key
indexer_id varchar(64) e.g. catalog_product_price
operation varchar(32) reindexAll / reindexRow / reindexList
context varchar(32) admin / cli / cron / api / unknown
status varchar(16) running / success / error
started_at datetime UTC
finished_at datetime UTC, nullable
duration_ms int unsigned nullable
message text Exception message on error
admin_user varchar(128) Username if triggered from admin

Indexes on indexer_id, started_at, and status keep the grid fast even with large tables.

Retention is enforced by the daily cron panth_indexer_manager_cleanup_run_log (runs at 03:00 in the default group). Set Log Retention (days) = 0 to keep entries forever.

FAQ

Does this module work on Hyva storefronts?

Yes. The module is admin-only and does not touch the storefront. It works identically on Hyva, Luma, Breeze, or any custom theme.

Will the reindex buttons appear for custom indexers?

Yes, as long as the custom indexer is registered in etc/indexer.xml and follows Magento conventions. The buttons are rendered for every row in the native Index Management grid.

Does it track CLI reindexes too?

Yes. bin/magento indexer:reindex goes through IndexerInterface, which the module's plugin wraps, so CLI runs appear in the Run Log with context = cli.

What about cron-driven reindexes?

Same - Magento's indexer_reindex_all_invalid and indexer_update_all_views cron jobs run through the same interface, so those runs appear with context = cron.

Is the queue strategy safe for production?

Yes. It uses Magento's standard MessageQueue framework with the DB connection by default, so no RabbitMQ or AMQP infrastructure is required. You can switch to RabbitMQ by editing etc/queue_publisher.xml if you need higher throughput.

Will it slow down my admin?

No. The grid renderers are O(n) over the indexer list (about 17 entries by default) and the live-poll endpoint returns a single small JSON response. Tracking adds one INSERT and one UPDATE per reindex.

Can I keep the log small?

Yes. Turn on Log Failures Only to skip successful runs. Set Log Retention (days) to a low number to prune old entries automatically, or use Clear Log to wipe everything at once.

Is Panth Core required?

Yes. mage2kishan/module-core is a free required dependency that Composer installs for you automatically.

Does it work with multi-store setups?

Yes. Indexers are global in Magento, but the failure notification email is sent using the store identity from which the admin request originated.

Support

Channel Contact
Product Page kishansavaliya.com/magento-2-indexer-manager.html
Email kishansavaliyakb@gmail.com
Website kishansavaliya.com
WhatsApp +91 84012 70422
GitHub Issues github.com/mage2sk/module-indexer-manager/issues
Upwork (Top Rated Plus) Hire Kishan Savaliya
Upwork Agency Panth Infotech

Response time: 1-2 business days.

Need Custom Magento Development?

Looking for custom Magento module development, Hyva theme work, store migrations, or performance tuning? Get a free quote in 24 hours:

Get a Free Quote

Hire on Upwork    Visit Agency    View Product Page

About Panth Infotech

Built and maintained by Kishan Savaliya (kishansavaliya.com), a Top Rated Plus Magento developer on Upwork with 10+ years of eCommerce experience.

Panth Infotech is a Magento 2 development agency that builds high quality, security focused extensions and themes for both Hyva and Luma storefronts. The extension suite covers SEO, performance, checkout, product presentation, customer engagement, and store management, with each module built to MEQP standards and tested across Magento 2.4.4 to 2.4.8.

Browse the full extension catalog on our Magento extensions page or on Packagist.

Quick Links

Resource Link
🛒 Product Page magento-2-indexer-manager.html
📦 Packagist mage2kishan/module-indexer-manager
🐙 GitHub mage2sk/module-indexer-manager
🌐 Website kishansavaliya.com
💬 Free Quote kishansavaliya.com/get-quote
👨‍💻 Upwork (Top Rated Plus) Hire Kishan Savaliya
🏢 Upwork Agency Panth Infotech
📧 Email kishansavaliyakb@gmail.com
📱 WhatsApp +91 84012 70422

Stop SSH-ing in to reindex. Click a button instead.
See Indexer Manager

SEO Keywords: magento 2 reindex from admin, magento 2 indexer manager, magento 2 reindex button, magento 2 indexer log, magento 2 reindex history, magento 2 indexer admin ui, magento 2 reindex tracker, magento 2 reindex queue, magento 2 indexer email alert, magento 2 indexer notification, magento 2 indexer dashboard, magento 2 reindex from backend, magento 2 indexer run log, magento 2 reindex without terminal, hyva indexer admin, magento 2 update on save toggle, magento 2 update by schedule toggle, magento 2 reindex selected, magento 2 reindex all, magento 2 reindex invalid, magento 2 indexer mode toggle, magento 2.4.8 reindex extension, magento 2 php 8.4 indexer, magento admin reindex extension, magento 2 indexer module, magento 2 indexer history log, mage2kishan indexer manager, panth infotech indexer manager, kishan savaliya magento, hire magento developer upwork, top rated plus magento freelancer, custom magento development, adobe commerce indexer admin

mage2kishan/module-indexer-manager 适用场景与选型建议

mage2kishan/module-indexer-manager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 05 月 07 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「admin」 「performance」 「indexer」 「magento2」 「magento2-module」 「reindex」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 mage2kishan/module-indexer-manager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 mage2kishan/module-indexer-manager 我们能提供哪些服务?
定制开发 / 二次开发

基于 mage2kishan/module-indexer-manager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 39
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2026-05-07