Autoptimize cache size issues w/Honeypot
-
Hi,
We ran into an issue where the Autoptimize (AO) cache was growing very large. After some investigation, I noticed that AO generates a separate cache file for each page that includes a form (w/Honeypot).
It turned out that the inline css snippet that Honeypot adds to hide the input field uses a ‘random’ css selector (#wpcf7-{ hash }-wrapper). We had AO configured to aggregate inline css, but due to the Honeypot css selector changing, it resulted in separate css cache files for each variant. AFAIK, the ‘hash’ is different for each page but maybe even per user session, ip, …?
We’ve disabled aggregation of inline css for now (which solves the immediate issue) but maybe you could look into making this work nice(r) with Autoptimize?
For reference: we ran into this issue on a careers site (https://careers.keylane.com/jobs/) where each vacancy has a separate page with a simple apply form. Each of those vacancy pages would include a Honeypot css snippet with a different hash.
Thanks!
The page I need help with: [log in to see the link]
- The topic ‘Autoptimize cache size issues w/Honeypot’ is closed to new replies.