Project

General

Profile

Actions

Task #104038

open

Typoscript cache can become quite large

Added by Rasmus Sallling about 1 month ago. Updated about 1 month ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2024-06-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
13
PHP Version:
8.3
Tags:
Complexity:
Sprint Focus:

Description

In our setup the typoscript cache gets quite large. We're seeing ~10MB cache size.
This is not a huge issue if you're running a few sites, but we're running a setup with ~3000 TYPO3 sites, having 10MB data that needs to be read for each site affects disk caching rates, which is untenable for us.

I've been examining the typoscript cache and it's not that we're really storing that much, it's mostly that the design of the typoscript parser combined with the ineffeciencies of serialize, causes the file to explode in size. I've tried replacing it with igbinary_serialize and that cuts the size to ~1/8.
Ofcourse, adding a dependency on igbinary to TYPO3 is probably not a good decision, so that's not the right fix.

However, Looking through the typoscript cache, I don't really understand why it's a code cache, it just defines a PHP file that returns the contents of the serialized objects, it doesn't use any capability that shouldn't work with a plain data cache.

I've created a patch for this and hope for some feedback.

Actions

Also available in: Atom PDF