Exclude cache for EDD minicart
-
Hi Folks,
I have an EDD (Easy Digital Downloads) mini cart in the header. It displays cart items if they are saved in the
edd_items_in_cart
cookie. But, since the page is being cached, it displays a “Your Cart is empty” message.I hope you already get my problem.
What I have done so far:
– Excluded
edd_items_in_cart
cookie in LsCache > Cache > Exclude cookie. Also, added a .htaaccess rule.
– Tried generating unix timestamp in the EDD cart container.`// get current date, time with seconds
$current_date = date(‘Y-m-d H:i:s’);
// convert current date to unix timestamp
$current_date_unix = strtotime($current_date);`– Added
ajax="true"
&reload="1"
attributes.
– Even tried adding an attributedata-no-lazy="1"
which is actually for excluding images.Since the page is being cached, nothing above worked. I am NOT using ESI as I am in OpenLiteSpeed & Cloudflare CDN.
Please let me know how can I exclude cache for Mini Cart? I have also opened this issue here.
Thank you in advance.`
The page I need help with: [log in to see the link]
- The topic ‘Exclude cache for EDD minicart’ is closed to new replies.