Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2018-01-11 02:39:46 +0300
committerMaxence Lange <maxence@artificial-owl.com>2018-01-11 02:39:46 +0300
commitd2851ff833c4adf4a821ff776036c54bd05478b2 (patch)
tree81bf8e55e7e906a407a5e4396e127575c201b457 /lib/Cron/Index.php
parentc5410b0784a64e7c75c4b7da6e10f10a51fdd532 (diff)
cron only after first index
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Cron/Index.php')
-rw-r--r--lib/Cron/Index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Cron/Index.php b/lib/Cron/Index.php
index b0c3d06..b03fe3e 100644
--- a/lib/Cron/Index.php
+++ b/lib/Cron/Index.php
@@ -109,6 +109,10 @@ class Index extends TimedJob {
try {
$provider = $this->providerService->getProvider($index->getProviderId());
+ if (!$this->providerService->isProviderIndexed($provider->getId())) {
+ continue;
+ }
+
$this->indexService->updateDocument($platform, $provider, $index);
} catch (Exception $e) {
$this->runner->exception($e->getMessage(), false);