• sahithk

    (@sahithk)


    I am trying to fix Batcache on my site?https://deveppspeedtest.mystagingwebsite.com. Batcache is broken because the below cookie session is set on the site, which breaks caching and prevents it from speeding up the website. The cookies were set by the woocommerce-multilingual plugin. Here are the cookies: set-cookie: wcml_client_currency=AED; expires=Sat, 20 Jul 2024 10:42:23 GMT; Max-Age=172800; path=/; secure set-cookie: wcml_client_currency_language=en; expires=Sat, 20 Jul 2024 10:42:23 GMT; Max-Age=172800; path=/; secure. I need to change the plugin settings to set the cookie only if/when needed or disable the cookie with any filter or code.

    How we can disable the cookie and working the batcache feature without affecting any funcntionality of wcml

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Hello @sahithk,

    Batcache is not a plugin that has been tested by WCML’s team. However, you can try using our wcml_user_store_strategy filter adding something like this in your theme’s functions.php file:

    // Use Cookie instead of WCSession
    add_filter( 'wcml_user_store_strategy', function ( $strategy, $key ) {
    return 'cookie';
    }, 10, 2 );

    Documentation:
    https://wpml.org/wcml-hook/wcml_user_store_strategy/

    Regards

    Hello @andrescifuentesr,

    I work for Pressable as a CS, we have many users who utilize your plugin, but it interferes with Batcache, which is a server-side caching system we use to speed up sites hosted on our platform.

    The temporary fix you provided above did not work. I’m happy to discuss this further and provide you with a test site so you can test your plugin effectively on our platform and develop a fix. Would you like that?

    Regards,

    tarhe

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Hello @obt28,

    Thanks for getting in contact with us. ??

    Sure, sounds like a good idea. In that case, I think the best way to go will be to contact us through our Go-Global program. In that way we won’t only investigate this issue with our devs and look for a solution, but we can also start a nice partnership.
    You can add this forum link to expedite the process.

    Thanks again!
    Andrés

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.