0

I'm using phpthumb to generate thumbnails from Flickr photos for a site hosted on AWS (free tier). The thumbnails-cache are generated and stored into directories in the following folders:

phpthumb

The problem is that at any given time, the number of thumbnails generated maxes out at 92. A cron job deletes the cache files at regular intervals, and every time only 92 files are deleted. I looked into each individual folder manutally and there always seems to be 92 thumbnails only.

I had hosted the site on another server (non-AWS) and this was not an issue. The cron job used to delete 50k+ files then. So could this be some kind of AWS restriction, or I am missing something else?

Yeti
  • 5,628
  • 9
  • 45
  • 71
  • I can't imagine this would be an AWS restriction. Could you show us some code? – Daan Feb 26 '12 at 11:02
  • Daan - Anything specific you would like to see? – Yeti Feb 26 '12 at 11:07
  • Well, if you say the number of thumbnails generated maxes out at 92, I suppose the code that generates the thumbnails would be the problem, and not the cron job that's responsible for deleting them. I'm not sure how long that code is, but I imagine the problem would be either in the part where you fetch a list of the images to process (in that case the script would simply not get the same list of images), or where you write them to the FS (so the thumbs would be generated but not stored). – Daan Feb 26 '12 at 13:22

0 Answers0