[TYPO3-english] XML Problem whitespace
steffen at steffen-gebert.de
Thu Nov 25 20:51:07 CET 2010
> I have located the issue to this problem:
> In my typo3conf/localconf.php i have:
> $TYPO3_CONF_VARS['EXT']['extCache'] = '0';
> When this is set to '0' my extension are not cached, i have used this
> option because of a problem with tt_news and caching.
> When switching this to '1' my whitespace in the top of my view-source
> both for xml and html disappear.
> Pretty interresting, now the problem is... where does this whitespace
> come from when disabling cache??
the whitespace is not cached, as it's not computed by TYPO3, but emitted
by PHP. When you enable the cache, you should get the whitespace at the
first hit, every subsequent hit, which is delivered from cache, should
not contain it.
IIRC typo3conf/localconf.php is included as very last, thus it sounds
reasonable that the ws is there (when you write that the temp-file had
it at the end).
Remove the ?> from localconf.php, then this can't happen for that file.
TYPO3 Core Team Member
Use a newsreader! Check out
More information about the TYPO3-english