Issue Bug Closed

#17120Content is not cached and white page displayed with big content / PHP 5.2.1

Robert Lemke 03/14/07, 13:28 updated 10/02/18, 12:32

Description

This problem originally occurred on typo3.org (ter_doc_pi1) but can be reproduced independently:

If a frontend plugin returns a large amount of content, this content is not written into the page cache. In addition not even the page without the FE plugin output is shown, but instead only a white page is displayed (which will be cached).

Use the attached extension to reproduce the behaviour:

- Install the FE plugin from the exploit extension on any page
- Make sure that you’re running PHP 5.2.1
- View the page containing the FE plugin, the page should be blank

- Set the no_cache flag in the page properties or add “no_cache=1” to the GET parameters
- View the page containing the FE plugin, the page should display the content

Obviously the problem has nothing to do with the FE plugin itself (hence the exploit extension). While debugging, it turned out that in tslib_fe->setPageCacheContent() the $content is already empty: Therefore the empty content is (correctly) stored in the cache_pages table.

The content disappears somewhere between the “return” of the FE plugin in the setPageCacheContent method in tslib_fe.
(issue imported from #M5221)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.