Quote:
Originally Posted by Killswitch
You're assuming this person is comfortable and familiar with the command line and the find command.
My assumptions are they know how to write PHP but that's about it.
And if you're optimizing your cronjobs there's a root issue not being solved.
|
Well yes, since OP is running on $2 shared hosting I'm assuming it's not managed, and if you can setup a cron for a PHP script you can also setup a cron running a find command.
If your task is to remove images older than 30 days, I don't see too much issues doing it this way.
It would be faster having the images and dates indexed to a ram db, but on $2 shared hosting I imagine your options are limited. Depending on the sizes of the directories using find like this should be just fine, and much much faster than relying on PHP.