public function flush($seconds = 0)
    {
        if (! (is_float($seconds) || is_int($seconds)) || $seconds < 0) {
            throw new InvalidArgumentException('Seconds must be a number greater than or equal to 0');
        }

        if (is_int($seconds)) {
            sleep($seconds);
        } else {
            usleep($seconds * 1000000);
        }

        clearstatcache();
        gc_collect_cycles();
    }