apply_filters( ‘enable_loading_object_cache_dropin’, bool $enable_object_cache )

In this article

Filters whether to enable loading of the object-cache.php drop-in.

Description

This filter runs before it can be used by plugins. It is designed for non-web runtimes. If false is returned, object-cache.php will never be loaded.

Parameters

$enable_object_cachebool
Whether to enable loading object-cache.php (if present).
Default true.

Source

if ( $first_init && apply_filters( 'enable_loading_object_cache_dropin', true ) ) {

Changelog

VersionDescription
5.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.