Brand Filter Cache Issue on Category Archives

This topic has 2 replies, 2 voices, and was last updated 2 weeks, 5 days ago ago by Andrew Mitchell

  • Avatar: DM661
    DM661
    Participant
    August 3, 2026 at 20:32

    I’m reporting an issue with XStore’s Brands Filter. A valid brand appears on the main Shop page but disappears when products are filtered by category or when viewing that category’s archive, even though the brand’s products remain visible.

    The product assignments, taxonomy relationships, stock status, and term counts are correct. XStore’s underlying SQL also returns the brand with the correct product count.

    The following workaround resolves the issue:

    add_filter(
    ‘woocommerce_layered_nav_count_maybe_cache’,
    ‘__return_false’,
    PHP_INT_MAX
    );

    Removing the workaround causes the brand to disappear again, even after clearing WooCommerce transients and all site caches. This suggests the contextual layered-navigation counts are being cached or keyed incorrectly.

    Please investigate the brand-count caching used by get_filtered_term_product_counts() in:

    app/models/widgets/brands-filter.php

    It appears the cache may not fully account for the active product-category context. Please consider addressing this in a future XStore Core release.

    1 Answer
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    August 4, 2026 at 07:56

    Hello, DM661,

    Thank you for your message. We will consider the possibility of changing the cache system.

    Best regards,
    8Theme’s Team

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.