apply_filters( 'enable_loading_object_cache_dropin', bool $enable_object_cache )

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.


Top ↑

Parameters

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

Top ↑

Source

File: wp-includes/load.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
5.8.0 Introduced.

Top ↑

User Contributed Notes

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