• Resolved kendoka92

    (@kendoka92)


    I am using a vendor plugin for WooCommerce namely Dokan.

    Within Dokan there is a widget to show the status of every product.
    When I create a new product the initial status is set to pending. After switching to the widget it shows me the total count of pending products, which is 0 in my case.

    After flushing the cache, the total count is being displayed correctly.
    So I assume it has to do with Redis or Dokan.

    Upon contacting Dokan what could be the issue they answered:

    Yes, we have a cachekey $count – wp_cache_set( $cache_key, $counts, ‘dokan’ );

    So I added
    define( 'WP_REDIS_IGNORED_GROUPS', ['dokan'] );
    into the wp-config.php.

    But the problem still persists.
    Does anyone know what could be the source of my problem?

    • This topic was modified 5 years, 5 months ago by kendoka92.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    Be sure to set it to ['counts', 'plugins', 'dokan'].

    If the numbers are still out of date, try flushing the cache.

    Thread Starter kendoka92

    (@kendoka92)

    Thank you for your response.

    At first, I tried only ['counts'].
    The second time I omitted it because I thought it was set by default.

    But I will try it out.

    Thread Starter kendoka92

    (@kendoka92)

    Alright, I put in

    define( 'WP_REDIS_IGNORED_GROUPS', ['counts', 'plugins', 'dokan'] );

    But it’s still not working. Only after flushing the cache manually, the correct product count is being displayed.

    I now tried disabling Redis and removing its wp-config.php entries. After this, the products are being counted correctly again after adding and deleting some as a test.

    • This reply was modified 5 years, 5 months ago by kendoka92.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ignoring cache group not working’ is closed to new replies.