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: 2024-08-27 12:23:52 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