Issue Bug Closed

#53962Class loader does not cache non existing classes

Alexander Stehlik 11/25/13, 23:08 updated 10/23/17, 21:46

Description

Just found this one while testing https://review.typo3.org/25673/:

ValidatorResolver->buildBaseValidatorConjunction()

called by

ActionController->initializeActionMethodValidators()

will always trigger the class loader because it calls:

class_exists('string')

which of course is not a class and does not exist.

Therefore it will not be stored in the cache and the whole class loader process starts all over again.

This is done by every request to the page module (by the SysNote hook).

Maybe it would make sense to store information about non existing classes in the cache?

Reviews 1