Home Forums WoodMart support forum Waitlist admin users table shows same data for all products

Waitlist admin users table shows same data for all products

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #715620

    Roman | Pixeler.sk
    Participant

    Hi,

    I found a caching bug in the waitlist admin panel. When viewing waitlist subscribers for different products, the same user data is displayed for every
    product.

    Location: inc/integrations/woocommerce/modules/waitlist/list-tables/class-users-table.php, method table_data(), lines 372-389.

    Cause: The wp_cache_key is hardcoded as wd_waitlist_users_table_data and does not include the product_id or variation_id. When you open the users list for
    the first product, the result is cached. When you then click on a different product, the cache still returns the data from the first product and the SQL
    query is never executed.

    Fix: The cache key should be unique per product/variation, e.g.:

    $cache_key = ‘wd_waitlist_users_table_data_’ . intval( $product_id ) . ‘_’ . intval( $variation_id );

    This is a one-line change that resolves the issue. Could you include this fix in the next theme update?

    Thank you.

    #715690

    Artem Temos
    Keymaster
    Xtemos team

    Hello,

    Thank you for the report.

    You can fix this by applying patch #715688. Please follow these steps:

    1. Go to Dashboard > WoodMart > Patcher
    2. Find the corresponding patch in the list
    3. Click the Apply button

    Please let us know if this resolves the issue.

    Best regards

    #716012

    Roman | Pixeler.sk
    Participant

    Hello,

    Thank you for the quick assistance! I have applied patch #715688 and can confirm that it resolved the issue.

    #716013

    Artem Temos
    Keymaster
    Xtemos team

    Great, we are glad that you sorted it out. Feel free to contact us if you have any further questions.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Waitlist admin users table shows same data for all products’ is closed to new replies.