Created
June 13, 2022 16:19
-
-
Save lukecav/2b2c493e831c49852854d4bd818ea7be to your computer and use it in GitHub Desktop.
Set cache lift span in WP-Optimize to 30 minutes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
https://wordpress.org/support/topic/how-to-set-cache-life-span-to-15min/