The offer ended but the Magento 2 timer is still visible. How do you check the cache?

2 min read

Silver timer with a pine-green dial, a copper marker and a reflection of the pointer at another angle.

You move an offer’s end time from 18:00 to 17:00. At 17:05 the timer is still running. Start with the deadline embedded in the page response. The example uses Countdown Promotion 1.0.8. Kowal Countdown Promotion · Set promotion dates and check timer visibility

Read the deadline in the HTML response

Record the URL, Store View, product, customer group and intended end time. In developer tools, open the document response and find endAt for the product ID in the Countdown Promotion configuration. It is in Unix epoch milliseconds. Compare it with the intended deadline and the device clock.

Compare a normal reload with a fresh session in the same customer context. If both serve the old date, inspect the Full Page Cache, Varnish or CDN used by the store. A private window can bypass the browser cache and still receive cached server HTML. Save the headers and timestamps before refreshing the relevant layer. Adobe cache management

Check what the countdown does

JavaScript reads endAt from the document and compares it with Date.now(). A stale 18:00 deadline can therefore keep the timer running after 17:00. If the timestamp has passed, the script skips creation. When an open tab reaches its deadline, the script removes the timer on its next update.

If endAt has passed and the element remains, check the device clock, JavaScript errors and theme code. Repeat the check on the product page and category list. For a configurable product, the module may use a variant’s deadline when the parent has no active offer of its own.

Check the price after expiry

The countdown removes its own element. The displayed price still depends on Magento’s price calculation and the page response. Check the special price and displayed amount in the same Store View. Adobe special price guide

What to look for after the deadline
ObservationNext check
HTML still shows 18:00Compare document responses and their cache in the same context.
HTML contains 17:00 and the timer remainsCheck the device clock, script execution and theme elements.
The timer is gone and the price is still reducedCheck price calculation, the price index and page cache.

If an import changed dates or prices, compare the write time and index run with the SKU history as well. Check price history after an ERP or CSV import

Previous Next

KOWAL.BLOG

Choose your language

Available versions open the corresponding page. More languages are being prepared.

English (UK) Français Deutsch Español Italiano Português Nederlands Svenska Dansk Norsk Suomi Lietuvių Latviešu Eesti Čeština Slovenčina Magyar Română Български Ελληνικά Slovenščina Hrvatski Polski English (US)