Project

General

Profile

Actions

Task #77443

closed

Make "Page is being generated" configurable

Added by Markus Mächler over 7 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2016-08-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

The message "Page is being generated" still appears in TYPO3 7.6.10 after the page cache is cleared and concurrent page requests are made.

This should never be the case. Moreover, the hardcoded refresh time of 30s is not suitable either.

I suggest completely removing \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->tempPageCacheContent
and let the of the second request client wait until the page has been generated by the first request,
which will be the case since there is no "temporary content" in the database cache
and the lock for generating the page in the second request will be acquired as soon as the first request is processed, and subsequently the second request will retrieve the cached paged from the database.
See \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->getFromCache

public function getFromCache()
{
...
$row = $this->getFromCache_queryRow();
if (!is_array($row)) {
// nothing in the cache, we acquire an exclusive lock now
$this->acquireLock('pages', $lockHash);
//
// from this point on we're the only one working on that page ($lockHash)
//
// query the cache again to see if the data are there meanwhile
$row = $this->getFromCache_queryRow();

Therefore our very simple solution is to just remove the code in \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->tempPageCacheContent

public function tempPageCacheContent(){}

We have tested it and it works fine.

Moreover, I am not sure why the "accessLock" introduced in https://review.typo3.org/#/c/38840/ is necessary.
This lock is set regardless of the current page id being handled, and therefore temporarily blocks the concurrent page generation of different pages.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #87980: TYPO3 can not handle two concurrent requests to the same (cachable) page without a 503 responseClosed2019-03-22

Actions
Actions

Also available in: Atom PDF