Support » Plugin: Redis Object Cache » Ignoring cache group not working

  • 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 1 month 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.

    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.

    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 1 month ago by kendoka92.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.