[TYPO3-mvc] Autoloader and Cache

Jochen Rau jochen.rau at typoplanet.de
Thu Jul 30 22:16:54 CEST 2009


Hi Steffen.

Thanks for pointing that out. Today I had a profiling session. The funny 
thing is that I stumbled exactly over these two issues.

Steffen Kamper wrote:
> in localconf.php i find declaration of autoloader and cache. Now
> situation is:
>
> _Autoloader_
> If extbase is installed, extbase autoloader is instanciated before core
> autoloader, which means that it will be used at first place. Shouldn't
> the autoloader of extbase instanciated in dispatcher instead? It's
> needed for extbase extensions only and would raise performance for all
> non-extbase-using pages.

The autoloader of Extbase was only a preliminary solution. It was 
intendet to drop these hack lines of code as soon as the core autoloader 
will be in place. Well, they are still there.

I have made the autoloader of extbase a bit lighter. It is now invoked 
inside the dispatcher. I am also going to provide a class path registry 
of Extbase classes for the core autoloader.

> _Cache_
> is there a reason why file cache is used here? Why not store this in one
> of the cache tables, or in a new cache table?

It would be much better to store the cached data in the database. Not 
only to be faster but to solve an issue with creating cache files on 
windows machines. I encountered this problem last Friday during a 
presentation.

Regards
Jochen


-- 
Every nit picked is a bug fixed



More information about the TYPO3-project-typo3v4mvc mailing list