Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_suspend_cache_invalidation [ WordPress Function ]

wp_suspend_cache_invalidation ( $suspend = true )
Parameters:
  • (bool) $suspend Whether to suspend or enable cache invalidation
Returns:
  • (bool) The current suspend setting
Defined at:



Suspend cache invalidation.

Turns cache invalidation on and off. Useful during imports where you don't wont to do invalidations every time a post is inserted. Callers must be sure that what they are doing won't lead to an inconsistent cache when invalidation is suspended.

Source


<?php
function wp_suspend_cache_invalidation($suspend true) {
    global 
$_wp_suspend_cache_invalidation;

    
$current_suspend $_wp_suspend_cache_invalidation;
    
$_wp_suspend_cache_invalidation $suspend;
    return 
$current_suspend;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics