Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Magento 2
  3. Magento Cache Clean

Magento Cache Clean

1.1.2

A faster drop-in replacement for bin/magento cache:clean with file watcher for Magento 2.

GitHubGitHub
544 stars65 forks0 contributors

What is Magento Cache Clean?

Magento Cache Clean is a developer tool that provides a faster drop-in replacement for the standard `bin/magento cache:clean` command in Magento 2. It solves the problem of slow cache clearing during development by implementing a more efficient cleaning process and adding a file watcher to automate cache invalidation when files change.

Target Audience

Magento 2 developers and development teams who need to improve their workflow efficiency by reducing time spent waiting for cache operations.

Value Proposition

Developers choose this tool because it dramatically speeds up cache clearing compared to the native Magento command, includes automatic cache invalidation through file watching, and requires minimal configuration as a drop-in replacement.

Overview

A faster drop in replacement for bin/magento cache:clean with file watcher

Use Cases

Best For

  • Speeding up Magento 2 development workflows
  • Automating cache clearing during file changes
  • Replacing slow native cache cleaning commands
  • Reducing developer wait times in Magento projects
  • Improving productivity in Magento 2 development environments
  • Managing cache efficiently in local development setups

Not Ideal For

  • Production environments where cache invalidation is handled by CDN or automated deployment pipelines
  • Projects not built on Magento 2, as the tool is specifically tailored for Magento 2's cache system
  • Teams that rely strictly on native Magento commands without third-party developer tools
  • Environments with restricted file system monitoring, such as certain shared hosting or container setups

Pros & Cons

Pros

Dramatic Speed Improvement

Replaces the slow native `bin/magento cache:clean` command with a much faster implementation, cutting down developer wait times during frequent cache operations.

Automated Cache Invalidation

Includes a file watcher that automatically triggers targeted cache cleaning when project files change, streamlining development by eliminating manual cache clears.

Seamless Integration

Acts as a drop-in replacement with the same binary path (`vendor/bin/cache-clean.js`), ensuring compatibility with existing workflows and scripts without configuration changes.

Backward Compatibility

Maintains functionality even after the package move to `mage-os/magento-cache-clean`, as the binary path remains unchanged for smooth transitions.

Cons

Deprecated Package Wrapper

The original `mage2tv/magento-cache-clean` is now an empty wrapper requiring the new package, which can cause confusion and dependency management issues for unaware users.

Manual Migration Required

Users must manually switch installations using Composer commands, adding an extra step that can be error-prone and disrupt setup if not done correctly.

Development-Only Focus

Primarily designed for local development, not suitable for production cache management where more robust solutions like Varnish or full-page caching are needed.

Frequently Asked Questions

Quick Stats

Stars544
Forks65
Contributors0
Open Issues14
Last commit11 months ago
CreatedSince 2018

Tags

#magento2#composer#developer-tools#performance-optimization#cli-tool#cache-management#magento-2#php#file-watcher#cachemanager

Included in

Magento 21.2k
Auto-fetched 1 day ago

Related Projects

Developer ToolbarDeveloper Toolbar

Mgt DeveloperToolbar for Magento 2

Stars305
Forks88
Last commit2 years ago
Advanced Template HintsAdvanced Template Hints

H&O Magento 2 Advanced Template Hints module

Stars287
Forks70
Last commit1 year ago
MageVulnDBMageVulnDB

List of Magento extensions with known security issues.

Stars211
Forks35
Last commit19 days ago
Magento 2 ConfiguratorMagento 2 Configurator

Magento 2 Configurator

Stars174
Forks59
Last commit17 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub