yireo / autoflushcache
此包已被废弃且不再维护。作者建议使用 yireo/magento2-autoflushcache 包。
2.0.2
2023-09-27 10:29 UTC
Requires
- php: >=8.0
- magento/framework: ^100.1|^101.0|^102.0|^103.0
Requires (Dev)
- composer/composer: *@dev
- phpunit/phpunit: *
This package is auto-updated.
Last update: 2023-09-27 10:29:29 UTC
README
Magento 2模块,当在系统配置中保存任何内容时,自动清除缓存。
请不要在生产环境中使用。
概述
在Magento 2中保存系统配置时,核心行为是在后端添加一个提醒,提示您手动清除缓存。在生产环境中,这是一种良好的实践:而不是每次更改都清除缓存,只有在需要时才清除缓存。在开发中,我总是保持缓存开启,这就会变得很烦人。此模块会自动为您清除缓存。
安装
使用composer在Magento 2中安装此模块
composer require yireo/magento2-autoflushcache --dev
bin/magento module:enable Yireo_AutoFlushCache
技术架构
此模块监听事件 controller_action_postdispatch_adminhtml_system_config_save
。每次调用时,它将清除以下缓存
config
block_html
full_page