Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Garbagecollect #67

Open
timhovius opened this issue Feb 5, 2015 · 1 comment
Open

Garbagecollect #67

timhovius opened this issue Feb 5, 2015 · 1 comment

Comments

@timhovius
Copy link

Is there any method to perform Garbage Collection in Symfony2?

@CharlyPoppins
Copy link

// 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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants