• Resolved chandrasekhar2chandu

    (@chandrasekhar2chandu)


    Hi there!
    Greetings of the day!

    My woocommerce website is connect with wp-rocket. Whenever I install and activate the redis-cache, the “action_scheduler_run_queue” is stopped running. Due to this along with “wp rocket cache clear and other scheduled events are not running” which causing cache problems. Here is the message I am getting from “tools > site health” window.

    The scheduled event, action_scheduler_run_queue, failed to run. Your site still works, but this may indicate that scheduling posts or automated updates may not work as intended.

    Can you please check and help me to fix this issue.
    Thanks in advance!

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    Are you on the latest version of WooCommerce and Action Scheduler?

    Thread Starter chandrasekhar2chandu

    (@chandrasekhar2chandu)

    Hi @tillkruess,

    Yes, I even added cache exceptions for redis in my functions.php. But still not working. Even sometimes, my website users reporting “Showing empty cart page when adding product to the cart”
    Can you please check and help me on this.

    // redis cache exclusions

    add_filter('redis_cache_skip_keys', function ($skip) {

        return array_merge($skip, [

            // Existing Woo + user session exclusions

            'wc_cart_',

            'wc_session_',

            '_wc_session_',

            'woocommerce_recently_viewed',

            'woocommerce_persistent_cart_',

            'wc_customer_browsing_history',

            'woocommerce_*_count',

            'current_user_',

            'user_meta_',

            'user_session_',

            'wp_session_',

            'session_',

            // Scheduler-related

            'action_scheduler_',

            '_transient_timeout_action_scheduler_',

            '_transient_action_scheduler_',

        ]);

    });
    Plugin Author Till Krüss

    (@tillkruess)

    The filter redis_cache_skip_keys is not related to this plugin, are you confusing it with something else?

    Thread Starter chandrasekhar2chandu

    (@chandrasekhar2chandu)

    Hi @tillkruess, thank you for the confirmation that the filter is not related to your plugin. However, I am using your redis plugin only on my WooCommerce website. If you want I can share system info. But, can you guide me how to exclude the woocommerce dynamic elements from redis cache. Eg. “Cart items, Checkout options, Sessions, User meta,” etc. Sometimes, we face issues like empty cart pages when adding to cart, Unable to login admin dashboard, etc.

    Plugin Author Till Krüss

    (@tillkruess)

    WooCommerce itself is great at working with persistent object caches, it should just work out of the box. Do you have any other plugins active?

    Thread Starter chandrasekhar2chandu

    (@chandrasekhar2chandu)

    I have wp-rocket and rocket CDN on our site. Also my website is connected through cloudflare. And cache settings are dynamic on Cloudflare.

    Plugin Author Till Krüss

    (@tillkruess)

    You’ll need to verify that the issue does not occur when only WC and RC are activated without any other plugins and caches.

    Thread Starter chandrasekhar2chandu

    (@chandrasekhar2chandu)

    The problem is the issue is coming on live site where we cannot test it like that. On staging site it is remain normal.

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