PHP.nl

imap_gc

imap_gc

Clears IMAP cache

true **imap_gc** IMAP\Connection $imap int $flags

Purges the cache of entries of a specific type.

flags Specifies the cache to purge. It may one or a combination of the following constants: (message cache elements), (envelope and bodies), (texts). IMAP_GC_ELT``IMAP_GC_ENV``IMAP_GC_TEXTS

return.true.always

Throws a if is invalid. ValueError``flags

Voorbeeld: example

<?php

$mbox = imap_open("{imap.example.org:143}", "username", "password");

imap_gc($mbox, IMAP_GC_ELT);

?>