wp_cache_close() WordPress Function

The wp_cache_close() function is used to close the cache. This function must be called after the cache has been started with wp_cache_open().

wp_cache_close() #

Closes the cache.


Description

This function has ceased to do anything since WordPress 2.5. The functionality was removed along with the rest of the persistent cache.

This does not mean that plugins can’t implement this function when they need to make sure that the cache is cleaned up after WordPress no longer needs it.


Top ↑

Return

(true) Always returns true.


Top ↑

Source

File: wp-includes/cache.php

function wp_cache_close() {
	return true;
}


Top ↑

Changelog

Changelog
VersionDescription
2.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.