WordPress.org

Ready to get started?Download WordPress

Forums

Wordfence Security
[resolved] Woocommerce and Falcon (17 posts)

  1. simonmc
    Member
    Posted 4 months ago #

    I have had problems with all cacheing engines failing to work correctly with woocommerce because the cart is on every page of the site and it can not be cached as it needs to be dynamic.

    How can I use falcon with woocommerce and exclude the shopping cart from caching?

    https://wordpress.org/plugins/wordfence/

  2. Wordfence
    Member
    Plugin Author

    Posted 4 months ago #

    I'd love to help you fix this. I don't use woocommerce, so please drop me an email at genbiz@wordfence.com which will create a ticket in our support system which I can track and use to get this issue resolved.

    Regards,

    Mark.

  3. pckeys
    Member
    Posted 2 months ago #

    @simonmc Would love to get some updates on how you went with woo commerce and the exclusions..

  4. simonmc
    Member
    Posted 2 months ago #

    @pckeys I got an email from Mark telling me they were going to include support for Woocommerce because it is such a popular ecom platform for wordpress but I have not had any feedback since.

    I would not not be surprised if it was just too big a deal because the real problem with all these cacheing solutions is that the cart and checkout which are completely dynamic and exist on every page.

    Any update on this Mark?

  5. pckeys
    Member
    Posted 2 months ago #

    I got a reply to pre-sales enquirey from mark on 29th that:

    "You may have to add cache exclusions for Wordfence Falcon to be compatible with Woo. "

    However there is another reply to a question on woo commerce compatibility here: http://wordpress.org/support/topic/woocommerce-21x-compatibility?replies=2

    where mark says it is compatible.... :S

    Very confused, holding off on installing/buying premium lic till I can get some clarity here.

  6. simonmc
    Member
    Posted 2 months ago #

    What cache exclusions would they be? If you have the cart and the checkout on every page what is the point then of excluding every page. It does not make sense. Perhaps Mark can add some instruction or clarity here.

  7. pckeys
    Member
    Posted 2 months ago #

    Simonc..

    I would assume that falcons exclusions are like any other caching program...

    where it is the dynamic content (js/ajax scripts names and querry strings) that are added as exclusions rather than a page..

    this is the way W3TC currently works with my woo commerce install

    I am still awaiting what those exclusions are.

  8. pckeys
    Member
    Posted 2 months ago #

    @simonmc by the way, woo commerce sets the constant "DONOTCACHEPAGE" on cart and checkout pages (as well as order received and account pages)

    You can check the header responses using something like "http://tools.seobook.com/server-header-checker/"

    Just enter your cart page or checkout page

    which would return something like;
    "Cache-Control:
    no-cache, must-revalidate, max-age=0
    Pragma:
    no-cache"

    The only question is if falcon respects the constant "DONOTCACHEPAGE"

  9. Wordfence
    Member
    Plugin Author

    Posted 2 months ago #

    Yes we do. Please see the lib/wfCache.php source where you'll find that the current version respects: DONOTCACHEPAGE

    Also just want you to know that we're going to be adding official support for Woo in an upcoming release.

    Regards,

    Mark.

  10. pckeys
    Member
    Posted 2 months ago #

    great stuff... thanks mark.

  11. Wordfence
    Member
    Plugin Author

    Posted 2 months ago #

    Hi, just an update on this.

    I've inspected WooCommerce's source code. They have actually done a great job of already telling caching plugins what not to cache. They have an entire class devoted to it which you can find in their source code at:

    includes/class-wc-cache-helper.php

    We fully support and respect the constants they set when they tell us what we should not cache and I have tested this.

    However if you have a situation where you're including the contents of your customer's shopping cart on every page, then you should disable caching whether you're using Wordfence or some other caching plugin. The reason for this is because you've now made your site completely dynamic and it's not possible for us to cache those pages because they change on a per-customer basis.

    Remember that if only part of your site has dynamic content - like everything under /shopping/ then you can just add that URL as an exclusion to Falcon cache and everything will still work fine.

    I love WooCommerce and the team has produced a great product, so we are now officially supporting WooCommerce alongside Wordfence. What this means is that:

    1) Free Wordfence users can post quests here about Woo and Wordfence and expect a repsonse.

    2) Paid customers can post priority support tickets with us asking questions regarding WooCommerce and Wordfence compatibility and we'll give you a timely response as always.

    Regards,

    Mark.

  12. Wordfence
    Member
    Plugin Author

    Posted 2 months ago #

    A further update:

    Please see this page in our documentation where we go into some detail on how to make sure Wordfence is compatible with WooThemes. The function we describe wordfence::doNotCache() will be included in Wordfence 5.1.1 which will be released within the next 48 hours.

    https://support.wordfence.com/solution/articles/1000074182-is-wordfence-and-falcon-caching-engine-compatible-with

    Regards,

    Mark.

  13. cotec
    Member
    Posted 2 months ago #

    On my page when you add an item to the art you can not get rid of it.

    http://subaqueousmusic.com/product-category/live-packs/

    You will see at the top right a shopping cart that dynamically shows what is in the cart. How would I go about and exclude this? Well that and the actual shopping cart form caching.

  14. Wordfence
    Member
    Plugin Author

    Posted 2 months ago #

    Hi @cotec,

    I tried to check your site but it appears to be down right now.

    Regards,

    Mark.

  15. cotec
    Member
    Posted 2 months ago #

    So I thought the problem was Nginx and turned the service off and it didn't change anything. so... still same problem.

    It looks like it is not wordfence. For some reason the cart does not let me erase things even with all cache turned off. So... I am at a loss. That is why I am looking at Nginx. Only that that has changes... https://rtcamp.com/wordpress-nginx/tutorials/plugins/woocommerce/

    don't know where which file to edit. But again... not your fault not your problem.

  16. simonmc
    Member
    Posted 2 months ago #

    Why does the cache clear every time someone places an order?

  17. simonmc
    Member
    Posted 2 months ago #

    Also, using gravity forms on a site, every-time someone fills out a form like a contact form the cache resets.

    These programs woocommerce and gravity forms have backend systems in wordpress that get updated whenever an order is placed or a form is submitted. These 2 processes reset the cache everytime an order is placed or a form is submitted. Which can be lot!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.