swift_performance_set_cache_hook_priority

Swift Performance will call Swift_Performance_Cache::set_cache() function on shutdown action at the very last priority (PHP_INT_MAX) by default. If you would like to call a function after the cache was generated you can override this priority with this filter

Parameters

$priority

integer contains the priority of Swift Performance cache hook

Return

integer


Example

// Use custom template dir
add_filter('swift_performance_set_cache_hook_priority', function($priority){
return PHP_INT_MAX-1;
});