HandlerFeedGenerator: Add caching

This commit is contained in:
2022-03-27 21:22:00 +02:00
parent f5eb36e7bb
commit 7bb7600d39
4 changed files with 23 additions and 11 deletions

View File

@@ -45,6 +45,7 @@ Response HandlerPageDelete::handleRequest(PageDao &pageDao, std::string pagename
{
pageDao.deletePage(pagename);
this->cache->removePrefix("page:"); // TODO: overkill?
this->cache->removePrefix("feed:");
return Response::redirectTemporarily(this->urlProvider->index());
}
TemplatePage delPage = this->templ->getPage("page_deletion");