diff --git a/ChangeLog b/ChangeLog
index 630e45ebc..b64d246c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
ChangeLog
+Upcoming verions
+[FEATURE] Add pagination in the backend module "Indexed content" function and avoid out of memory error. https://github.com/tpwd/ke_search/issues/100
+
Version 5.4.1, 19 April 2024
[BUGFIX] Always remove duplicates from tags, not only when a tag is set in the indexer configuration. https://github.com/tpwd/ke_search/issues/211
[BUGFIX] Fix TypeError after 'RemoveLock'. Thanks to Stephan Bauer. https://github.com/tpwd/ke_search/issues/223
diff --git a/Classes/Controller/BackendModuleController.php b/Classes/Controller/BackendModuleController.php
index 7a4c664ec..c16bf9310 100644
--- a/Classes/Controller/BackendModuleController.php
+++ b/Classes/Controller/BackendModuleController.php
@@ -28,6 +28,7 @@
use Tpwd\KeSearch\Indexer\IndexerRunner;
use Tpwd\KeSearch\Lib\Db;
use Tpwd\KeSearch\Lib\SearchHelper;
+use Tpwd\KeSearch\Pagination\SlidingWindowPagination as BackportedSlidingWindowPagination;
use Tpwd\KeSearch\Service\IndexerStatusService;
use TYPO3\CMS\Backend\Module\ModuleData;
use TYPO3\CMS\Backend\Routing\UriBuilder;
@@ -39,7 +40,7 @@
use TYPO3\CMS\Core\Information\Typo3Version;
use TYPO3\CMS\Core\Page\PageRenderer;
use TYPO3\CMS\Core\Pagination\ArrayPaginator;
-use TYPO3\CMS\Core\Pagination\SimplePagination;
+use TYPO3\CMS\Core\Pagination\SlidingWindowPagination;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Utility\LocalizationUtility;
@@ -281,28 +282,23 @@ public function startIndexingAction(ServerRequestInterface $request, ModuleTempl
*/
public function indexedContentAction(ServerRequestInterface $request, ModuleTemplate $moduleTemplate): ResponseInterface
{
- $pagination = null;
- $paginator = null;
- $currentPageNumber = (int)($request->getQueryParams()['currentPageNumber'] ?? 1);
-
if ($this->pageId) {
$perms_clause = $this->getBackendUser()->getPagePermsClause(1);
$pageInfo = BackendUtility::readPageAccess($this->pageId, $perms_clause);
- // page is selected: get indexed content
- $content = '