Plugin for Osclass that once per week removes all images for expired ads. Job is triggered by cron_weekly hook.
When the job is triggered, it check in the DB all expired ads and retreve the list of the resources (images) for all ads thet are expired.
Job removes all images and then removes all resource entries from t_item_resource table. So after removal add will be dispaled with no images inside.
All removed file names are loged in the 'expiredImages.log' file in the root folder of your site.