Shopware plugin to enable HTTP caching for forms
This plugin enables HTTP caching, warming and invalidation for forms. Works like caching for shop pages. Standard cache time is 4 days (14400 seconds).
Currently, this works only for new Shopware installations. With the Shopware 5.5 release, the internal URL for forms SEO URLs changed from sViewport=ticket&sFid=<ID>
to sViewport=forms&sFid=<ID>
. This properly broke the SEO URL generation in your installation. So, the cache warming isn't working, because it relies on the SEO URL generation. Installing this plugin will migrate the forms SEO URLs to the new schema. Hard links in the categorie's "External" field and the shop page's "Link" field will be migrated, too. Please check for other hard links to the internal form URL!!!
- Shopware >= 5.5.0
- PHP >= 7.0
- ⚡ Shopware's Premium Plugin "Ticket System"
There is a pull request (shopware/shopware#2100) pending targeted for Shopware 5.6. Maybe this plugin will be part of the Shopware core in the future.
- Checkout plugin in
/custom/plugins/BucoFormsHttpCache
- Install and active plugin with the Plugin Manager
- Change to your root installation of Shopware
- Run command
composer require buddha-code/buco-forms-http-cache
- Install and active plugin with
./bin/console sw:plugin:install --activate BucoFormsHttpCache
Feel free to fork and send pull requests!
This project uses the GPLv3 License.