mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
update meilisearch move to schedule run command
This commit is contained in:
@@ -958,16 +958,17 @@ function docleanup($forceAll = 0, $printProgress = false) {
|
||||
printProgress($log);
|
||||
}
|
||||
|
||||
//cost too many time, migrate to schedule run command
|
||||
//sync to Meilisearch
|
||||
$meiliRep = new \App\Repositories\MeiliSearchRepository();
|
||||
if ($meiliRep->isEnabled()) {
|
||||
$meiliRep->import();
|
||||
}
|
||||
$log = "sync to Meilisearch";
|
||||
do_log($log);
|
||||
if ($printProgress) {
|
||||
printProgress($log);
|
||||
}
|
||||
// $meiliRep = new \App\Repositories\MeiliSearchRepository();
|
||||
// if ($meiliRep->isEnabled()) {
|
||||
// $meiliRep->import();
|
||||
// }
|
||||
// $log = "sync to Meilisearch";
|
||||
// do_log($log);
|
||||
// if ($printProgress) {
|
||||
// printProgress($log);
|
||||
// }
|
||||
|
||||
//Priority Class 5: cleanup every 15 days
|
||||
$res = sql_query("SELECT value_u FROM avps WHERE arg = 'lastcleantime5'");
|
||||
|
||||
Reference in New Issue
Block a user