mirror of
https://github.com/itflow-org/itflow
synced 2026-08-24 00:15:12 +00:00
Shared Items via secure link: Do not delete shared items that have not been viewed before cron runs
This commit is contained in:
@@ -105,7 +105,7 @@ logApp("Cron", "info", "Cron Started");
|
|||||||
mysqli_query($mysqli, "TRUNCATE TABLE ticket_views");
|
mysqli_query($mysqli, "TRUNCATE TABLE ticket_views");
|
||||||
|
|
||||||
// Clean-up shared items that have been used
|
// Clean-up shared items that have been used
|
||||||
mysqli_query($mysqli, "DELETE FROM shared_items WHERE item_views = item_view_limit");
|
mysqli_query($mysqli, "DELETE FROM shared_items WHERE item_view_limit > 0 AND item_views >= item_view_limit");
|
||||||
|
|
||||||
// Clean-up shared items that have expired
|
// Clean-up shared items that have expired
|
||||||
mysqli_query($mysqli, "DELETE FROM shared_items WHERE item_expire_at < NOW()");
|
mysqli_query($mysqli, "DELETE FROM shared_items WHERE item_expire_at < NOW()");
|
||||||
|
|||||||
Reference in New Issue
Block a user