[Typo3-dev] [Good||Silly] idea ???
Kraft Bernhard
kraftb at gmx.net
Tue Mar 8 14:43:42 CET 2005
Martin Poelstra wrote:
> This would mean that php-accelerators won't be able to cache the
> classes, which is a major drawback.
> Another solution would be to save the 'file' you are trying to eval() to
> a 'normal' .php-file (just like the temp_CACHED_-files).
> Then you'd only need to write these files during installation of a new
> extension that also extends the class. You can simply point the
> ['XCLASS']-variable to this merged-class-file, and all should be OK.
Primary this is a good idea.
When you install the extension some code checks what is the "last" instance
of some extended class (i.e. "ux_ux_ux_baseclass") and then set's the names
of the newly installed extension to appropriate values...
This will work really well for BE extension (TYPO3_MODE=BE) but not for FE
extensions as their XCLASSES are just included if TYPO3_MODE == FE ...
But pherhaps a small workaround will help. I will try if it is possible to do
the FE part of the "rewriting" from within ext_tables.php script which is just
included after clearing the cache ... so this performance impact (the rewrite) will just take
place after a cache clear.
greets,
Bernhard
--
Kraft Bernhard
MOKKA Medienagentur <http://www.mokka.at>
T: +43 - 1 - 895 33 33 - 50
More information about the TYPO3-dev
mailing list