Skip to content

Instantly share code, notes, and snippets.

@lukecav
Created June 13, 2022 16:19
Show Gist options
  • Save lukecav/2b2c493e831c49852854d4bd818ea7be to your computer and use it in GitHub Desktop.
Save lukecav/2b2c493e831c49852854d4bd818ea7be to your computer and use it in GitHub Desktop.
Set cache lift span in WP-Optimize to 30 minutes
add_filter('wpo_option_key_page_cache_length', 'my_prefix_page_cache_length');
function my_prefix_page_cache_length() {
return 60 * 30;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment