Please see attached screenshots. Even though the product is out of stock. woocommerce is still showing that the product is instock. If you refresh the browser, it switches to out of stock. We are using WP rocket and have it set up as you discuss in your artical. I assume this is a caching issue? Our users do have to be logged in to see this stock status.
This is even happing on the shop pages. These products are all out of stock. Notice the Out of Stock bar at the top, but then above the price it says In stock.
As a side note, how do I shut off the OUT OF STOCK bar at the top and only display stock above the price (I found that setting)
If the product was in stock and is now in stock, it may still be displayed incorrectly if loaded from the cache. This is how WP Rocket works by default. To avoid such situations, we recommend reducing the cache lifespan in WP Rocket settings to 30 minutes or less.
Ok, I will test. I will first disable WP rocket and test.
Where are the red OUT OF STOCK bars coming from.. Is that your theme? Those are accurate but the lower one below sku are not. I would like to turn off that RED out of stock bar.