Menu Adam R Brown

WP hooks navigation: Home/browse • Actions index • Filters index

Source View: site_status_should_suggest_persistent_object_cache

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
3526            * Filters whether to suggest use of a persistent object cache and bypass default threshold checks.
3527            *
3528            * Using this filter allows to override the default logic, effectively short-circuiting the method.
3529            *
3530            * @since 6.1.0
3531            *
3532            * @param bool|null $suggest Boolean to short-circuit, for whether to suggest using a persistent object cache.
3533            *                           Default null.
3534            */
3535           $short_circuit = apply_filters( 'site_status_should_suggest_persistent_object_cache', null );
3536           if ( is_bool( $short_circuit ) ) {
3537                return $short_circuit;
3538           }
3539
3540           if ( is_multisite() ) {
3541                return true;
3542           }
3543
3544           /**