1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<?php function update_queue_time($id) { logger('queue: requeue item ' . $id); q("UPDATE outq SET outq_updated = '%s' WHERE outq_hash = '%s' LIMIT 1", dbesc(datetime_convert()), dbesc($id) ); } function remove_queue_item($id) { logger('queue: remove queue item ' . $id); q("DELETE FROM outq WHERE hash = '%s' LIMIT 1", dbesc($id) ); }