YoastWPSEOshould_invalidate_opcache

YoastWPSEOshould_invalidate_opcache

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-seo.26.1.1

apply_filters('YoastWPSEOshould_invalidate_opcache') is found 1 times:

  • /wp-seo-main.php line 352
    		 * @since 26.1
    		 *
    		 * @param bool $should_invalidate Whether opcache should be invalidated.
    		 */
    		$should_invalidate_opcache = (bool) apply_filters( 'Yoast\WP\SEO\should_invalidate_opcache', true );
    		if ( $should_invalidate_opcache && function_exists( 'opcache_reset' ) ) {
    			// phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged -- Prevent notices when opcache.restrict_api is set.
    			@opcache_reset();
    		}
    
    		new WPSEO_Upgrade();