aboutsummaryrefslogtreecommitdiffstats
path: root/include/queue_fn.php
blob: 512edb5314618b1367c8a4f0d58de8db10d494b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php /** @file */

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)
	);
}