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.