Can we remove dynamic event_id to allow site caching?
-
Hi,
I want to keep my page output html static, so I can easily cache it.
Unfortunately the method pys_add_code_to_woo_cart_link creates a unique event id ($event_id = uniqid();) to reference button click to ajax call.
Is there a good reason for this or could we generate the id based on the product this link refers to so the output remains static?Cheers,
sunP.S.: I’m aware that even this “dynamic” page can be cached in whole if we cache the button and the ajax script. Still it is annoying and could break with fragment caching.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Can we remove dynamic event_id to allow site caching?’ is closed to new replies.