first commit
This commit is contained in:
@@ -59,7 +59,7 @@ class ClearCacheActionsHook implements ClearCacheActionsHookInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a menu entry to the clear cache menu to detect Solr connections.
|
||||
* Adds a menu entry to the clear cache menu to detect Meilisearch connections.
|
||||
*
|
||||
* @param array $cacheActions Array of CacheMenuItems
|
||||
* @param array $optionValues Array of AccessConfigurations-identifiers (typically used by userTS with options.clearCache.identifier)
|
||||
@@ -70,13 +70,13 @@ class ClearCacheActionsHook implements ClearCacheActionsHookInterface
|
||||
return;
|
||||
}
|
||||
|
||||
$href = $this->uriBuilder->buildUriFromRoute('ajax_solr_updateConnections');
|
||||
$optionValues[] = 'clearSolrConnectionCache';
|
||||
$href = $this->uriBuilder->buildUriFromRoute('ajax_meilisearch_updateConnections');
|
||||
$optionValues[] = 'clearMeilisearchConnectionCache';
|
||||
$cacheActions[] = [
|
||||
'id' => 'clearSolrConnectionCache',
|
||||
'title' => 'LLL:EXT:meilisearch/Resources/Private/Language/locallang.xlf:cache_initialize_solr_connections',
|
||||
'id' => 'clearMeilisearchConnectionCache',
|
||||
'title' => 'LLL:EXT:meilisearch/Resources/Private/Language/locallang.xlf:cache_initialize_meilisearch_connections',
|
||||
'href' => $href,
|
||||
'iconIdentifier' => 'extensions-solr-module-initsolrconnections'
|
||||
'iconIdentifier' => 'extensions-meilisearch-module-initmeilisearchconnections'
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user