Brand Filter Cache Issue on Category Archives

1 reply2 participantsUpdated by Andrew Mitchell

  • Avatar: DM661
    DM661
    Participant

    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

    Hello, DM661,

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

    Best regards,
    8Theme’s Team

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register