• Resolved mstep

    (@mstep)


    I have installed the plugin and use in on my home page for items to be ordered. Works just as intended.

    However, it prevents the SG Optimize (SGO) plugin from caching the site. In SGO you can exclude files you don’t want cached and I’ve tried to exclude pages with any of these phases in a page name:

    — store (the name of my shopping page with prices and “add to cart” shortcodes

    — checkout (the name of my checkout page

    If I remove all “add to cart” buttons from the home page (the shopping cart in not active on it, but the plugin is still active), the home page still will not cache and I see a session cookie on it, which I believe prevents caching.

    The only way I can get the home page to cache is to deactivate the plugin. So just having it active, but not used on the home page, prevents caching.

    Any help would be really appreciated.

    • This topic was modified 3 years, 6 months ago by mstep.

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, try to exclude the home page of your site from getting cache. Here is a documentation for a different cache plugin that might also help you.
    https://www.tipsandtricks-hq.com/ecommerce/wp-shopping-cart-and-wp-super-cache-workaround-334

    Thank you

    Thread Starter mstep

    (@mstep)

    Thanks. I have tried that to no effect. I have even tried changing the home page with no inclusion of any of the cart short codes or any thing else but still a cookie is set.

    The plugin seems to set a cookie on the homepage as soon as it loads regardless.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi,

    I checked your site above and there seems to be a few errors. Maybe if you fix these errors your issue might go away. Not sure though. Use the following link to help you further.

    https://www.ads-software.com/support/article/using-your-browser-to-diagnose-javascript-errors/

    Let me know how you go.

    Thank you

    • This reply was modified 3 years, 6 months ago by mbrsolution.
    Thread Starter mstep

    (@mstep)

    Sorry, but that will not fix this issue. Why is the plugin loading and setting a cookie when it is not used on that page? That is the issue. I looked at the code.

    • This reply was modified 3 years, 6 months ago by mstep.
    Plugin Contributor mbrsolution

    (@mbrsolution)

    Out of curiosity, what is the name of the cookie?

    Thank you

    Thread Starter mstep

    (@mstep)

    Thanks for continuing to work with me on this.

    The name is “PHPSESSID”.

    Just want to say the home page is usually the most important page to cache (SEO) and excluding it is not really an option. What I don’t understand is why a cookie is set when the cart is not being used on the page and has has not previously be activated on a page that uses the cart.

    Thread Starter mstep

    (@mstep)

    I have concluded that the plugin just does not work with SQ Optimizer. However I have tried WP Super Cache and it seems to work just fine. Home page is cached, and the cart check out page excluded correctly.

    So apologies for sending you down a rabbit hole!

    Thanks again.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, just to let you know. After speaking with the developers, they confirm with me that our plugin does not create the “PHPSESSID” cookie.

    Kind regards

    Thread Starter mstep

    (@mstep)

    Thanks for checking. However, if I deactivate the plugin the cookie is not there. Then if I activate it again, it’s back. That is repeatable.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Using WordPress Simple PayPal Shopping Cart with SG Optimizer for caching’ is closed to new replies.