WP_Super_Cache_Rest_Get_Settings::get_minimum_preload_interval()
Method of the class: WP_Super_Cache_Rest_Get_Settings{}
No Hooks.
Return
Int
.
Usage
// protected - for code of main (parent) or child class $result = $this->get_minimum_preload_interval();
WP_Super_Cache_Rest_Get_Settings::get_minimum_preload_interval() WP Super Cache Rest Get Settings::get minimum preload interval code WPSCache 1.12.4
protected function get_minimum_preload_interval() { global $wpdb; $count = $this->get_post_count(); if ( $count > 1000 ) { $min_refresh_interval = 720; } else { $min_refresh_interval = 30; } return $min_refresh_interval; }