You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: events.php
+42-30
Original file line number
Diff line number
Diff line change
@@ -75,37 +75,42 @@ public function import_pics()
75
75
}
76
76
77
77
78
+
publicfunctionpurge()
79
+
{
80
+
81
+
82
+
//Purge
83
+
//SELECT listings older than 30 days (updated OR created.) Limit it. It's really slow. maximum should be 50
84
+
$sql =" SELECT id FROM default_listing_homes WHERE (updated is null and (TO_DAYS(NOW()) - TO_DAYS(created)) > 30 ) OR ( (TO_DAYS(NOW()) - TO_DAYS(updated)) >30 ) LIMIT 10";
// 1- check in the config the path for the profiles.
85
97
// 2- Load all the profiles where "auto = true"
86
98
// 3- check if a file is awaiting for import process
87
99
// 4- Import it :)
88
100
89
101
90
102
91
-
//Purge
92
103
93
-
$sql =" SELECT id FROM default_listing_homes WHERE (updated is null and (TO_DAYS(NOW()) - TO_DAYS(created)) > 30 ) OR ( (TO_DAYS(NOW()) - TO_DAYS(updated)) >30 ) LIMIT 60";
0 commit comments