site_status_should_suggest_persistent_object_cache

過濾鉤子
apply_filters( 'site_status_should_suggest_persistent_object_cache', null )
引數
  • (bool|null) $suggest Boolean to short-circuit, for whether to suggest using a persistent object cache. Default null.
    Required:
定義位置
相關勾子
site_status_persistent_object_cache_urlsite_status_persistent_object_cache_notessite_status_persistent_object_cache_thresholdssite_status_available_object_cache_servicessite_status_test_result
相關方法
wp_start_object_cachewp_using_ext_object_cache
引入
6.1.0
棄用
-

site_status_should_suggest_persistent_object_cache: 這是一個過濾鉤,允許你修改網站健康工具是否應該建議使用永續性物件快取。

篩選是否建議使用持久物件快取並繞過預設閾值檢查。

使用此篩選器可以覆蓋預設邏輯,從而有效地縮短方法。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$short_circuit = apply_filters( 'site_status_should_suggest_persistent_object_cache', null );
$short_circuit = apply_filters( 'site_status_should_suggest_persistent_object_cache', null );
$short_circuit = apply_filters( 'site_status_should_suggest_persistent_object_cache', null );

常見問題

FAQs
檢視更多 >