|
eZ Publish
[trunk]
|
Handles garbage collection in the database. More...
Handles garbage collection in the database.
Cleans up garbage (leaks) in the database which can be left behind by bugs or crashes in the system.
Garbage collection is divided into several static functions which performs cleanup of one or more tables. What is common for all functions are the $maxTime and $sleepTime parameters which controls how long a GC operation can go on and how long it should sleep between batch operations.
eZDBGarbageCollector::collectBaskets(); // or // Perform GC for 5 minutes with 2 second sleep intervals eZDBGarbageCollector::collectBaskets( 5*60, 2 );