We're running Magento CE 2.3.4 with built-in caching support, and we send out email campaigns using MailChimp, where customers are clicking through to our website using links that contain individualized email tracking parameters.
We have noticed that when customers click through to our site from such campaigns, Magento creates a separate full page cache entry for each customer's visit to each page, effectively invalidating most of the benefit of having the full-page cache (they don't revisit their own individual links often enough for this cache to be beneficial). I assume this is because the link parameters are being treated as part fo the full-page cache key. This also causes the load on our system to spike when an email campaign first goes out, due to all of the customers arriving at the same time, forcing Magento to serve the initial click on each link dynamically, not out of cache.
Ideally we would like to be able to tell Magento to ignore certain link parameters when constructing the cache key, because they don't affect the page content at all and there's no reason Magento should be caching each permutation of link parameters separately.
Any ideas on how to accomplish this, or best practices on how to handle full-page caching with email tracking parameters?
are you using varnish then i have solution for that
No, I am not using Varnish. I am using Magento's built-in caching.
Anyone else have any ideas of how to handle this? It seems pretty inefficient to have a new cache entry created for each customer's unique clickthrough. There must be a way to avoid this issue.