[TYPO3-dev] New icons to the core or to t3skin?

Ernesto Baschny [cron IT] ernst at cron-it.de
Fri Jan 29 12:12:22 CET 2010


Martin Kutschker schrieb am 29.01.2010 10:50:
> Dmitry Dulepov schrieb:
>> In any case anything in typo3temp/ can be removed in any time. This is
>> the idea of a "temp" directory.
> 
> The problems arises IMHO because typo3temp/ acts both as (short time) temporary storage and
> (long/intermediate time) caching storage.
> 
> The difference between a temp/ and a cache/ is in my opinion that any process must (should) cleanup
> any data created in temp/. It should hold only data that went to disk because it couldn't be
> processed in memory. You could clean temp/ any time but I recommend to clean only old/stale files
> unless the system is suspended.
> 
> A cache/ OTOH will naturally hold the data for longer and especially for retrieval by other processes.

Good point.

But currently typo3temp is mostly used as a "cache". Which is why most
people just regularly "clean it up", expecting stuff there to be
regenerated when required (which is how a cache works).

Core generates very little "temporary files". I can spot:

- t3lib_div::upload_to_tempfile
- t3lib_svbase even has a mechanism for services to "register temp
files" which are deleted on reset()

maybe others. There is typo3temp/temp/ which might be a candidate for
those really "temporary" actions.

So I would also see typo3temp/ as our current spot to place the
auto-generated sprites.

Cheers,
Ernesto




More information about the TYPO3-dev mailing list