Route "entity.post.collection" does not exist drupal 8

I’m still new in drupal 8 i was working in my project when i cleared my cash to compile some of my modification i get this error :

  The website encountered an unexpected error. Please try again later.

Symfony/Component/Routing/Exception/RouteNotFoundException: Route "entity.post.collection" does not exist. in Drupal/Core/Routing/RouteProvider->getRouteByName() (line 190 of core/lib/Drupal/Core/Routing/RouteProvider.php).
Drupal/Core/Routing/UrlGenerator->getRoute('entity.post.collection') (Line: 128)
Drupal/Core/Routing/UrlGenerator->getPathFromRoute('entity.post.collection', Array) (Line: 68)
Drupal/Core/Render/MetadataBubblingUrlGenerator->getPathFromRoute('entity.post.collection', Array) (Line: 790)
Drupal/Core/Url->getInternalPath() (Line: 135)
Drupal/Core/Utility/LinkGenerator->generate('Posts', Object) (Line: 94)
Drupal/Core/Render/Element/Link::preRenderLink(Array)
call_user_func(Array, Array) (Line: 376)
Drupal/Core/Render/Renderer->doRender(Array, ) (Line: 195)
Drupal/Core/Render/Renderer->render(Array) (Line: 490)
Drupal/Core/Template/TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 105)
__TwigTemplate_76913508025720010150bc76ecbf64e3bbfe28feb4cc1fc39f6560517586a2cc->getmenu_links(Array, Object, 0) (Line: 48)
__TwigTemplate_76913508025720010150bc76ecbf64e3bbfe28feb4cc1fc39f6560517586a2cc->doDisplay(Array, Array) (Line: 432)
Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403)
Twig_Template->display(Array) (Line: 411)
Twig_Template->render(Array) (Line: 64)
twig_render_template('core/modules/toolbar/templates/menu--toolbar.html.twig', Array) (Line: 384)
Drupal/Core/Theme/ThemeManager->render('menu__toolbar__admin', Array) (Line: 435)
Drupal/Core/Render/Renderer->doRender(Array, 1) (Line: 195)
Drupal/Core/Render/Renderer->render(Array, 1) (Line: 151)
Drupal/Core/Render/Renderer->Drupal/Core/Render/{closure}() (Line: 574)
Drupal/Core/Render/Renderer->executeInRenderContext(Object, Object) (Line: 152)
Drupal/Core/Render/Renderer->renderPlain(Array) (Line: 327)
_toolbar_do_get_rendered_subtrees(Array)
call_user_func('_toolbar_do_get_rendered_subtrees', Array) (Line: 376)
Drupal/Core/Render/Renderer->doRender(Array, 1) (Line: 195)
Drupal/Core/Render/Renderer->render(Array, 1) (Line: 151)
Drupal/Core/Render/Renderer->Drupal/Core/Render/{closure}() (Line: 574)
Drupal/Core/Render/Renderer->executeInRenderContext(Object, Object) (Line: 152)
Drupal/Core/Render/Renderer->renderPlain(Array) (Line: 297)
toolbar_get_rendered_subtrees() (Line: 355)
_toolbar_get_subtrees_hash() (Line: 167)
toolbar_toolbar()
call_user_func_array('toolbar_toolbar', Array) (Line: 402)
Drupal/Core/Extension/ModuleHandler->invokeAll('toolbar') (Line: 81)
Drupal/toolbar/Element/Toolbar::preRenderToolbar(Array)
call_user_func(Array, Array) (Line: 376)
Drupal/Core/Render/Renderer->doRender(Array) (Line: 448)
Drupal/Core/Render/Renderer->doRender(Array, ) (Line: 195)
Drupal/Core/Render/Renderer->render(Array) (Line: 490)
Drupal/Core/Template/TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 107)
__TwigTemplate_7f08c5388aa10728e8ff2a2f40cf4dd30703d0cd743b7b9d43de1a13f0a662d8->doDisplay(Array, Array) (Line: 432)
Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403)
Twig_Template->display(Array) (Line: 411)
Twig_Template->render(Array) (Line: 64)
twig_render_template('themes/custom/maghribcom/templates/system/html.html.twig', Array) (Line: 384)
Drupal/Core/Theme/ThemeManager->render('html', Array) (Line: 435)
Drupal/Core/Render/Renderer->doRender(Array, ) (Line: 195)
Drupal/Core/Render/Renderer->render(Array) (Line: 147)
Drupal/Core/Render/MainContent/HtmlRenderer->Drupal/Core/Render/MainContent/{closure}() (Line: 574)
Drupal/Core/Render/Renderer->executeInRenderContext(Object, Object) (Line: 148)
Drupal/Core/Render/MainContent/HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal/Core/EventSubscriber/MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object) (Line: 111)
Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher->dispatch('kernel.view', Object) (Line: 149)
Symfony/Component/HttpKernel/HttpKernel->handleRaw(Object, 1) (Line: 64)
Symfony/Component/HttpKernel/HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal/Core/StackMiddleware/Session->handle(Object, 1, 1) (Line: 47)
Drupal/Core/StackMiddleware/KernelPreHandle->handle(Object, 1, 1) (Line: 47)
Drupal/Core/StackMiddleware/ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal/Core/StackMiddleware/NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack/StackedHttpKernel->handle(Object, 1, 1) (Line: 656)
Drupal/Core/DrupalKernel->handle(Object) (Line: 19)

had the same problem when a desactivated my cache in another backup of my database so I let my cache desactivated, i think maybe it’s a problem with the data table router, but still i have no idea what to do.