Tag: ecommerce

  • The Intern, the Cache, and the Price That Wouldn’t Change

    The Intern, the Cache, and the Price That Wouldn’t Change

    Our intern, Dimitrije, was given a simple task: change the price of our most popular product from €49 to €39 for the weekend sale.

    He changed it in WordPress. He refreshed the product page. €49.

    He changed it again. Refreshed. €49.

    By the twelfth attempt he was convinced the website was haunted, and honestly, we were starting to agree.

    The layers of cache

    It turned out there were four separate places remembering the old price:

    1. The page cache plugin
    2. The hosting company’s server cache
    3. The CDN in front of the site
    4. His own browser

    Each one was doing its job perfectly. Each one was proudly serving a fast, cached, outdated page. When he finally cleared all four, the price changed. Then the CDN came back with an old copy from another location, and for a while, visitors in different countries saw different prices.

    What we learned

    • Know how many cache layers your site has. Write them down.
    • After important changes, check the live page from the outside, not from your logged-in browser.
    • Compare what the page should say with what it actually says. A simple text check on “€39” would have told us in minutes which visitors were seeing what.

    Dimitrije now explains caching to new interns. He uses a drawing of four filing cabinets. It’s surprisingly good.