bonobos/spree — pull request #6 by athal7 (2014-02-04 20:59:11+00:00)
Title: Allow stock items to only touch their variant after save if their in_sto...

...ck state changes

Currently when a stock item changes its count on hand (e.g. an order is placed), it touches the related variant, which touches its related product (thus invalidating product cache). For users that do not show inventory counts on their product page, this code enables the ability to keep product page cache warm until a stock item changes its in_stock state, rather than on every purchase of that stock item.