diff --git a/Classes/Command/NotifySearchEngineCommand.php b/Classes/Command/NotifySearchEngineCommand.php
index bd4789c..5ad13d5 100644
--- a/Classes/Command/NotifySearchEngineCommand.php
+++ b/Classes/Command/NotifySearchEngineCommand.php
@@ -60,8 +60,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$this->stackRepository->deleteByUid($stack->getUid());
}
- $this->logger->info(sprintf('Batch sent (%d URLs), all entries deleted', count($uids)));
- $output->writeln(sprintf('Batch sent (%d URLs), all entries deleted.', count($uids)));
+ $this->logger->info(sprintf('Batch sent (%d URLs), all entries deleted', $stackStorage->count()));
+ $output->writeln(sprintf('Batch sent (%d URLs), all entries deleted.', $stackStorage->count()));
return self::SUCCESS;
}
diff --git a/Classes/Notifier/SearchEngineNotifier.php b/Classes/Notifier/SearchEngineNotifier.php
index 7273a35..33ccd80 100644
--- a/Classes/Notifier/SearchEngineNotifier.php
+++ b/Classes/Notifier/SearchEngineNotifier.php
@@ -105,18 +105,18 @@ protected function notifySingleStack(Stack $stack): bool
return $isValidRequest;
}
+ /**
+ * @throws ApiKeyNotAvailableException
+ */
protected function getUrlForSingleNotification(Stack $stack): string
{
+ // Do not surround with try-catch. It should break in scheduler/cli
+ // if no API key is available to inform the user visually
$uri = new Uri($this->extConf->getSearchEngineEndpoint());
-
- try {
- $uri = $uri->withQuery(HttpUtility::buildQueryString([
- 'url' => $stack->getUrl(),
- 'key' => $this->extConf->getApiKey(),
- ]));
- } catch (ApiKeyNotAvailableException) {
- return '';
- }
+ $uri = $uri->withQuery(HttpUtility::buildQueryString([
+ 'url' => $stack->getUrl(),
+ 'key' => $this->extConf->getApiKey(),
+ ]));
return (string)$uri;
}
diff --git a/Resources/Private/Language/ExtConf.xlf b/Resources/Private/Language/ExtConf.xlf
index fe4ec7c..046a0f1 100644
--- a/Resources/Private/Language/ExtConf.xlf
+++ b/Resources/Private/Language/ExtConf.xlf
@@ -7,14 +7,11 @@
API Key: Each request needs an API key to identify your URLs. You can build one here: https://www.bing.com/indexnow
- Search Engine Endpoint: Define the index-now URL of searchengine which should be used to inform about modified content. Use ###URL### and ###APIKEY### for dynamic values.
-
-
- Enable debug mode: In case of problems it can help to activate the debug mode. In this case, additional information is displayed in the backend, such as the URL that is sent to the search engines.
+ Search Engine Endpoint: Define the index-now URL of searchengine which should be used to inform about modified content.Notify batch mode: if enabled, the search engine will be notified using batch mode. This means that modified URLs are sent in a single request. A maximum of 10,000 URLs can be sent per batch.