Articles on: Developers

Change delay in preloading cache

FlyingPress sets a default delay of 0.5s for cache preloading between pages to prevent server overload. Adjust this delay with the flying_press_preload_delay filter.

Shared hosting



On shared hosting or limited server resources, increase the delay to 1s:

add_filter('flying_press_preload_delay', function(){ return 1;});


Dedicated hosting



On dedicated or high-end servers, eliminate the delay by setting it to 0s:

add_filter('flying_press_preload_delay', function(){ return 0;});

Updated on: 18/12/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!