[Typo3] 500000 images in /typo3temp folder
Michael Stucki
michael at typo3.org
Wed Nov 30 21:57:56 CET 2005
Hi Valery,
> I have some support tasks on TYPO3 site which has nearly 350000 images in
> /typo3temp folder and will have more in short time.
>
> This images are prodused by a custom extension, something like
> photo-gallery.
> System works on FreeBSD.
>
> Can this large number of files produce problems?
I think that depends on the file system, but it shouldn't be a problem for
TYPO3.
> I consider to rewrite this custom extension, or may be simply correct TS
> of it.
> I think alternativeTempPath with some conditions to original file date can
> solve this problem.
> So I think it is good to have something like this:
> /typo3temp/200511/
> /typo3temp/200512/
> /typo3temp/200601/
> etc
I suggest to run a cron-job on this site for doing regular cleanups. A good
method is to use GNU find together with the "atime" parameter (last access)
// Delete all files that have not been accessed over the last 10 days:
# find /path/to/typo3temp/ -type f -atime +10 -exec rm -f {} \;
- michael
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
More information about the TYPO3-english
mailing list