ImageBundle icon indicating copy to clipboard operation
ImageBundle copied to clipboard

Garbagecollect

Open timhovius opened this issue 10 years ago • 1 comments

Is there any method to perform Garbage Collection in Symfony2?

timhovius avatar Feb 05 '15 13:02 timhovius

// This could be a cron called each day @3:00AM for instance use Gregwar\Image\GarbageCollect;

// Removes all the files from ../cache that are more than 30 days // old. A verbose output will explain which files are deleted GarbageCollect::dropOldFiles(DIR.'/../cache', 30, true);

CharlyPoppins avatar Mar 12 '15 17:03 CharlyPoppins