Exponential 6.0.13 Exponential Enterprise Open Source CMS - PHP Class Reference

eZDBGrbageCollector Class Reference

Handles garbage collection in the database. More...

## Detailed Description

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 );
eZDBGarbageCollector\collectBaskets
collectBaskets( $maxTime=false, $sleepTime=false, $limit=false)
Definition: ezdbgarbagecollector.php:60

The documentation for this class was generated from the following file:

- ezdbgarbagecollector.php

Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.