# Payment Studio promotions — keep the public price/promo file in step with time.
#
# Sales, coupons and the promo bar have start/end windows, but the file the public
# site reads (promo-public.json) was only rewritten when somebody pressed Save. A
# sale that ended on a Sunday night stayed on the pricing page until the next edit,
# and a bar scheduled for Monday 09:00 never appeared until someone opened the tab.
# The landing page also gates on the exported window to the minute; this tick is
# what re-resolves PRICES when a sale starts or ends. Cheap: two small JSON reads,
# and a write only when something changed.
*/10 * * * * www-data /usr/bin/flock -n /run/lock/alpha-promo-export.lock /usr/bin/php /var/www/alpha/bin/promo-export.php >/dev/null 2>&1
