WP_CLI\Utils\wp_clear_object_cache() Edit

Clear WordPress internal object caches.

Usage Usage


Top ↑

Notes Notes

In long-running scripts, the internal caches on $wp_object_cache and $wpdb
can grow to consume gigabytes of memory. Periodically calling this utility
can help with memory management.

Internal API documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.

Top ↑