Announcement

Collapse
No announcement yet.

Notify API for Inventory Status Change

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Notify API for Inventory Status Change

    If there a notify feature in the Miva API that will trigger when a product's inventory status changes? We're considering working with a CDN to serve our website, and they can cache the pages generated by Miva, but we would want a way to automatically purge cache on a per-page basis when a product's stock status changes.

    Thanks,
    Josh

    #2
    Via a module there is a way to subscribe to a product update where the module would get called each time the product is updated, but not specifically for inventory. Also, inventory in miva is reduced when the product is added to the cart so it would constantly be changing.

    Do you display inventory counts on the product page? Or do you just want to have the page update when a product is out of stock.

    Most CDNs will cache assets (CSS, Images, JS, ect) and not the full HTML, which gives you the majority of the benefit without caching the HTML.
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      We don't display inventory counts, so I was just looking for a trigger when there's a status change, like hitting low inventory or out of stock. In theory, that does already happen because it can trigger emails.

      I've been talking with CDNs that do specifically offer full HTML caching in addition to other assets, with the goal of getting server response/TTFB times down under 200ms if possible. Some page types are cacheable (like SFNT, CTGY, PROD, ABUS, etc), and some aren't (BASK, checkout, account pages). For non-cached pages, they usually have some type of acceleration feature that accesses your origin from their closest POP and transfers it through their CDN network to the edge closest to the visitor so you still get some benefit.

      Comment

      Working...
      X