Amasty Banners Lite: stop flushing every product page on cart price rule save ============================================================================= Package: amasty/module-banners-lite (tested on 1.2.4) Author: Paxento, https://paxento.com/ Article: https://paxento.com/amasty-banners-lite-sales-rule-cache-flush/ License: provided as-is, without warranty. Test on staging before production. Removes the Banners Lite create, update and delete handlers on the sales rule entity, so saving a cart price rule no longer cleans the cat_p cache tag. Do NOT apply if you use promo banners: banner settings will no longer be saved. Apply with cweagans/composer-patches or vaimo/composer-patches, e.g.: "patches": { "amasty/module-banners-lite": { "Stop cache flush on sales rule save": "patches/amasty-banners-lite-stop-cache-flush-on-sales-rule-save.patch" } } diff --git a/etc/di.xml b/etc/di.xml index 43bb473..dd10528 100644 --- a/etc/di.xml +++ b/etc/di.xml @@ -39,16 +39,13 @@ - Amasty\BannersLite\Model\SalesRule\SaveHandler - Amasty\BannersLite\Model\SalesRule\SaveHandler Amasty\BannersLite\Model\SalesRule\ReadHandler - Amasty\BannersLite\Model\SalesRule\DeleteHandler