Files
api/services/nginx/app/cron/ClearAllUsersEconomicCustomerDiscounts.php
T
2025-01-29 14:27:44 +01:00

22 lines
552 B
PHP

<?php
/**
* This script is used to sync bookings from the remote API to the local database.
* It is run as a cron job.
*
* index.php run bookingSync
*/
// prevent direct access
use objects\users_o;
if (!defined('WD')) {
exit;
}
$start = microtime(true);
// Sync the discounts
$users_o = new users_o();
$users_o->clearAllUsersEconomicCustomerDiscountsFromCache();
$end = microtime(true);
//$slack = new \classes\slack();
//$slack->send_message("The booking sync script has finished. It took " . round($end - $start, 2) . " seconds to run.");