Support » Plugin: SG Optimizer » Woocommerce Setup

  • Resolved magedmoh94

    (@magedmoh94)


    My site runs the WooCommerce Social Login plugin and we are having some issues with signing in with our social providers and the current caching configuration. The developers of the plugin have asked us to place a cache exception for the /wc-api/ endpoint and the wc-api query argument, along with ensuring that wp_woocommerce_session* cookies are not cached. Could you please add the following URL to the exception list? http://YOURSITE.com/wc-api/* 3 and also exclude anything using the wc-api query parameter from caching as well, such as http://YOURSITE.com/?wc-api&auth=twitter 4? Along with this, please ensure we’re excluding all session cookies using wp_woocommerce_session*

    Bare inmind that the dynamic and memcached are enbaled

    So what actions do i need to take, also i want to know how can i exclude certain cookies from being cached

    • This topic was modified 2 months, 4 weeks ago by  magedmoh94.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    There’s exclude functionality in the first screen of the plugin. Just add wc-api to it.

    And what about the wp_woocommerce_session* Cookies

    Also please tell me how to exclude the cookies separetly.

    Also i need to know if the memcache has negative impact on woocommerce as i read here

    https://wordpress.org/support/topic/sg-optimizer-5-0-7-problem-with-woocommerce/

    • This reply was modified 2 months, 4 weeks ago by  magedmoh94.
    Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    We do not support exclusion based on cookies except the ones we exclude globally. Right now we do not exclude wp_woocommerce_session_ from the cache but only woocommerce_items_in_cart so people can see cached content until they actually add something to the cart.

    As to memcached, the link you’ve shared is about 8 versions ago and the problems reported in it are long solved. Best approach would be to see how it works for your site. Right now, we don’t have active issues with memcached and WooCommerce if the latest plugin version is used.

    So wp_woocommerce_session_ is included which may occur corruption with the woocommerce social login plugin for now right ?

    Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    Our configuration does not use wp_woocommerce_session_ cookie as a criteria to disable cache. If we do this that means that all the WooCommerce traffic would be excluded from the cache. We have a public function for plugin developers to purge the cache and support wildcard URL / path exclusion. Last but not least, we exclude logged in users completely from the cache. I think that you should check with the WooCommerce Social Login devs to check what’s causing issues on their end. If there’s anything in particular, I will gladly look into it and update the plugin if necessary but bypassing cache on wp_woocommerce_session_ is not a solution.

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