W3cubDocs

/WordPress

WP_Object_Cache::__destruct()

Saves the object cache before object is completely destroyed.

Description

Called upon object destruction, which should be when PHP ends.

Return

(true) Always returns true.

Source

File: wp-includes/cache.php

Changelog

Version Description
2.0.8 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_object_cache/__destruct