• Resolved Zakir Sajib

    (@zakirstage)


    Sometimes i see this message (checkout is not available whilst you cart is empty) while visiting some pages in our site, most of them are static pages. This is issue number 1.

    Second:
    And I also notice cart amount is not working properly. For example, i use firefox private mode or even normal mode, if i add to cart, item successfully added, then I go to cart and go to checkout, all looks good. When i remove the item from cart, it works, all fine. Now i close the tab of that browser.
    But if i again browse the site, ( and site loads first as i can see hit status in browser network tab and i use preloader from your plugin settings so it loads first) , but while browsing i notice there is old item in cart. But i already removed them previously.

    I don’t understand is it my firefox issue as i can see from browser settings it says https://prnt.sc/wk51s7 or is it your plugin causing this?

    I don’t use any caching plugin. I use Varnish and redis cache in our cloudways server.

    Let me share some of our varnish settings: (Just let me know do I need to keep these settings or not)

    https://prnt.sc/wk52pa
    https://prnt.sc/wk52xp
    https://prnt.sc/wk535f

    And I enabled the fallback cache and varnish cache support in your plugin. Purge varnish cache works properly. Test cache works too.

    https://prnt.sc/wk547v
    https://prnt.sc/wk54ta
    https://prnt.sc/wk5550

    And this is cloudflare page rules:
    https://prnt.sc/wk55ld

    Any help would be highly grateful.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    Hi @zakirstage ,
    I cannot test it ’cause when I try to add a product in the cart, your server response to Ajax is “Error establishing a database connection”.

    You should consider to optimize your application (it does many requests for each page) or upgrade to a web server with more resources.

    Btw the cart and checkout pages are correctly excluded from the Cloudflare cache. Regarding the fallback cache, or you use the one provided with the plugin or use Varnish. Both server caches are unuseful and can create conflicts.

    Thread Starter Zakir Sajib

    (@zakirstage)

    Yes we have an issue, cloudways team working on it. We have 8GB Ram and 160 GB space. We are considering to upgrade if neceassary.

    We are not using any caching plugin.

    We have varnish and redis cache installed on cloudways. Are you asking not to use varnish cache? Sorry I didnt understand your last sentences (Regarding the fallback cache, or you use the one provided with the plugin or use Varnish. Both server caches are unuseful and can create conflicts.).

    And as you see the screenshot (https://prnt.sc/wk535f), i have created few rules on varnish, should I delete them all ?

    Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    We have varnish and redis cache installed on cloudways. Are you asking not to use varnish cache? Sorry I didnt understand your last sentences (Regarding the fallback cache, or you use the one provided with the plugin or use Varnish. Both server caches are unuseful and can create conflicts.).

    If you want use Varnish, you don’t need to enable the fallback cache of the plugin. They are both fallback caching systems to Cloudflare.

    And as you see the screenshot (https://prnt.sc/wk535f), i have created few rules on varnish, should I delete them all ?

    To test if your rules work well, disable the Cloudflare cache and test the website with Varnish only. If it works well in any circumstances, then re-enable the cache on Cloudflare.

    Thread Starter Zakir Sajib

    (@zakirstage)

    Ah I see. Thank you. Really appreciate.

    closing the ticket.

    Thread Starter Zakir Sajib

    (@zakirstage)

    closing.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘checkout is not available whilst you cart is empty’ is closed to new replies.