shopping cart is empty while magento cache is enabled












0















Magento 1.9 shows 'shopping cart is empty' when i add product to cart while default cache enabled. when i turn off the cache, cart is working fine.



my session and cookie settings seems to be fine



Cookie Lifetime: 86400
Cookie Path: /
Cookie Domain: .website.com
Use HTTP Only: No
Cookie Restriction Mode: No

Use SID on Frontend: Yes


maybe this issue from 'xcache' it's enabled in my server..?



xcache.admin.enable_auth="on"
xcache.admin.pass="*****"
xcache.admin.user="mOo"
xcache.cacher="On"
xcache.coredump_directory=""
xcache.count="1"
xcache.coveragedump_directory="/tmp/pcov/"
xcache.coverager="Off"
xcache.gc_interval="0"
xcache.mmap_path="/dev/zero"
xcache.optimizer="Off"
xcache.readonly_protection="Off"
xcache.size="0"
xcache.slots="8K"
xcache.test="Off"
xcache.ttl="0"
xcache.var_count="1"
xcache.var_gc_interval="300"
xcache.var_maxttl="0"
xcache.var_size="0"
xcache.var_slots="8K"
xcache.var_ttl="0"









share|improve this question














bumped to the homepage by Community 57 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • If you have a custom cart, you may need to hole punch the cache. There is a lot of reference material on hole punching Magento's FPC.

    – MagentJo
    Feb 24 '17 at 14:56











  • not i'm not using custom cart

    – Mo Darwish
    Feb 25 '17 at 14:30
















0















Magento 1.9 shows 'shopping cart is empty' when i add product to cart while default cache enabled. when i turn off the cache, cart is working fine.



my session and cookie settings seems to be fine



Cookie Lifetime: 86400
Cookie Path: /
Cookie Domain: .website.com
Use HTTP Only: No
Cookie Restriction Mode: No

Use SID on Frontend: Yes


maybe this issue from 'xcache' it's enabled in my server..?



xcache.admin.enable_auth="on"
xcache.admin.pass="*****"
xcache.admin.user="mOo"
xcache.cacher="On"
xcache.coredump_directory=""
xcache.count="1"
xcache.coveragedump_directory="/tmp/pcov/"
xcache.coverager="Off"
xcache.gc_interval="0"
xcache.mmap_path="/dev/zero"
xcache.optimizer="Off"
xcache.readonly_protection="Off"
xcache.size="0"
xcache.slots="8K"
xcache.test="Off"
xcache.ttl="0"
xcache.var_count="1"
xcache.var_gc_interval="300"
xcache.var_maxttl="0"
xcache.var_size="0"
xcache.var_slots="8K"
xcache.var_ttl="0"









share|improve this question














bumped to the homepage by Community 57 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • If you have a custom cart, you may need to hole punch the cache. There is a lot of reference material on hole punching Magento's FPC.

    – MagentJo
    Feb 24 '17 at 14:56











  • not i'm not using custom cart

    – Mo Darwish
    Feb 25 '17 at 14:30














0












0








0








Magento 1.9 shows 'shopping cart is empty' when i add product to cart while default cache enabled. when i turn off the cache, cart is working fine.



my session and cookie settings seems to be fine



Cookie Lifetime: 86400
Cookie Path: /
Cookie Domain: .website.com
Use HTTP Only: No
Cookie Restriction Mode: No

Use SID on Frontend: Yes


maybe this issue from 'xcache' it's enabled in my server..?



xcache.admin.enable_auth="on"
xcache.admin.pass="*****"
xcache.admin.user="mOo"
xcache.cacher="On"
xcache.coredump_directory=""
xcache.count="1"
xcache.coveragedump_directory="/tmp/pcov/"
xcache.coverager="Off"
xcache.gc_interval="0"
xcache.mmap_path="/dev/zero"
xcache.optimizer="Off"
xcache.readonly_protection="Off"
xcache.size="0"
xcache.slots="8K"
xcache.test="Off"
xcache.ttl="0"
xcache.var_count="1"
xcache.var_gc_interval="300"
xcache.var_maxttl="0"
xcache.var_size="0"
xcache.var_slots="8K"
xcache.var_ttl="0"









share|improve this question














Magento 1.9 shows 'shopping cart is empty' when i add product to cart while default cache enabled. when i turn off the cache, cart is working fine.



my session and cookie settings seems to be fine



Cookie Lifetime: 86400
Cookie Path: /
Cookie Domain: .website.com
Use HTTP Only: No
Cookie Restriction Mode: No

Use SID on Frontend: Yes


maybe this issue from 'xcache' it's enabled in my server..?



xcache.admin.enable_auth="on"
xcache.admin.pass="*****"
xcache.admin.user="mOo"
xcache.cacher="On"
xcache.coredump_directory=""
xcache.count="1"
xcache.coveragedump_directory="/tmp/pcov/"
xcache.coverager="Off"
xcache.gc_interval="0"
xcache.mmap_path="/dev/zero"
xcache.optimizer="Off"
xcache.readonly_protection="Off"
xcache.size="0"
xcache.slots="8K"
xcache.test="Off"
xcache.ttl="0"
xcache.var_count="1"
xcache.var_gc_interval="300"
xcache.var_maxttl="0"
xcache.var_size="0"
xcache.var_slots="8K"
xcache.var_ttl="0"






magento-1.9 cache






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 24 '17 at 14:16









Mo DarwishMo Darwish

31




31





bumped to the homepage by Community 57 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 57 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • If you have a custom cart, you may need to hole punch the cache. There is a lot of reference material on hole punching Magento's FPC.

    – MagentJo
    Feb 24 '17 at 14:56











  • not i'm not using custom cart

    – Mo Darwish
    Feb 25 '17 at 14:30



















  • If you have a custom cart, you may need to hole punch the cache. There is a lot of reference material on hole punching Magento's FPC.

    – MagentJo
    Feb 24 '17 at 14:56











  • not i'm not using custom cart

    – Mo Darwish
    Feb 25 '17 at 14:30

















If you have a custom cart, you may need to hole punch the cache. There is a lot of reference material on hole punching Magento's FPC.

– MagentJo
Feb 24 '17 at 14:56





If you have a custom cart, you may need to hole punch the cache. There is a lot of reference material on hole punching Magento's FPC.

– MagentJo
Feb 24 '17 at 14:56













not i'm not using custom cart

– Mo Darwish
Feb 25 '17 at 14:30





not i'm not using custom cart

– Mo Darwish
Feb 25 '17 at 14:30










1 Answer
1






active

oldest

votes


















0














Usually having an empty cart is a cookie issue. It sounds like you've added in a cookie domain; I would try different combinations, including using the www. version of the site.



The second thing to look at is where your session files are being stored on the site. Session files not saving properly are usually the #2 reason why a cart shows as empty. They could be in the file system (i.e. /var/ directory), they could be in the database (much slower, but sometimes done if you have a lot of front end web servers), or in a separate cache like memcache. I would check to see where the session files are being stored.



Third, a caching system could affect your site having contents in the cart. This will depend on what type of cache you are using. If you're using a caching system like Varnish, you need to specifically exclude the cart and checkout pages. Varnish is very difficult to get working with Magento 1.9 due to all of the places where it will automatically cache pages like the checkout pages.



If you're using Amasty Full Page Cache or Extendware, then you'll want to make sure to exclude the checkout and cart pages in their configurations.



I hope this helps!






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "479"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f161659%2fshopping-cart-is-empty-while-magento-cache-is-enabled%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Usually having an empty cart is a cookie issue. It sounds like you've added in a cookie domain; I would try different combinations, including using the www. version of the site.



    The second thing to look at is where your session files are being stored on the site. Session files not saving properly are usually the #2 reason why a cart shows as empty. They could be in the file system (i.e. /var/ directory), they could be in the database (much slower, but sometimes done if you have a lot of front end web servers), or in a separate cache like memcache. I would check to see where the session files are being stored.



    Third, a caching system could affect your site having contents in the cart. This will depend on what type of cache you are using. If you're using a caching system like Varnish, you need to specifically exclude the cart and checkout pages. Varnish is very difficult to get working with Magento 1.9 due to all of the places where it will automatically cache pages like the checkout pages.



    If you're using Amasty Full Page Cache or Extendware, then you'll want to make sure to exclude the checkout and cart pages in their configurations.



    I hope this helps!






    share|improve this answer




























      0














      Usually having an empty cart is a cookie issue. It sounds like you've added in a cookie domain; I would try different combinations, including using the www. version of the site.



      The second thing to look at is where your session files are being stored on the site. Session files not saving properly are usually the #2 reason why a cart shows as empty. They could be in the file system (i.e. /var/ directory), they could be in the database (much slower, but sometimes done if you have a lot of front end web servers), or in a separate cache like memcache. I would check to see where the session files are being stored.



      Third, a caching system could affect your site having contents in the cart. This will depend on what type of cache you are using. If you're using a caching system like Varnish, you need to specifically exclude the cart and checkout pages. Varnish is very difficult to get working with Magento 1.9 due to all of the places where it will automatically cache pages like the checkout pages.



      If you're using Amasty Full Page Cache or Extendware, then you'll want to make sure to exclude the checkout and cart pages in their configurations.



      I hope this helps!






      share|improve this answer


























        0












        0








        0







        Usually having an empty cart is a cookie issue. It sounds like you've added in a cookie domain; I would try different combinations, including using the www. version of the site.



        The second thing to look at is where your session files are being stored on the site. Session files not saving properly are usually the #2 reason why a cart shows as empty. They could be in the file system (i.e. /var/ directory), they could be in the database (much slower, but sometimes done if you have a lot of front end web servers), or in a separate cache like memcache. I would check to see where the session files are being stored.



        Third, a caching system could affect your site having contents in the cart. This will depend on what type of cache you are using. If you're using a caching system like Varnish, you need to specifically exclude the cart and checkout pages. Varnish is very difficult to get working with Magento 1.9 due to all of the places where it will automatically cache pages like the checkout pages.



        If you're using Amasty Full Page Cache or Extendware, then you'll want to make sure to exclude the checkout and cart pages in their configurations.



        I hope this helps!






        share|improve this answer













        Usually having an empty cart is a cookie issue. It sounds like you've added in a cookie domain; I would try different combinations, including using the www. version of the site.



        The second thing to look at is where your session files are being stored on the site. Session files not saving properly are usually the #2 reason why a cart shows as empty. They could be in the file system (i.e. /var/ directory), they could be in the database (much slower, but sometimes done if you have a lot of front end web servers), or in a separate cache like memcache. I would check to see where the session files are being stored.



        Third, a caching system could affect your site having contents in the cart. This will depend on what type of cache you are using. If you're using a caching system like Varnish, you need to specifically exclude the cart and checkout pages. Varnish is very difficult to get working with Magento 1.9 due to all of the places where it will automatically cache pages like the checkout pages.



        If you're using Amasty Full Page Cache or Extendware, then you'll want to make sure to exclude the checkout and cart pages in their configurations.



        I hope this helps!







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 24 '17 at 15:13









        Jeff FinkelsteinJeff Finkelstein

        59527




        59527






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f161659%2fshopping-cart-is-empty-while-magento-cache-is-enabled%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Last logged in always never, not logging

            Colouring column values based on a specific condition. How could I do this?

            Iĥnotaksono