Last active
March 11, 2019 08:08
-
-
Save ellegaarddk/d978aa1e403a44c97d9f96efa414f994 to your computer and use it in GitHub Desktop.
Autoptimize: adjust the level of the autowarning on cache size to 1GB
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
<?php | |
// #Adjusting Autoptimize warning limit to 1GB | |
add_filter('autoptimize_filter_cachecheck_maxsize','adjust_cachesize'); | |
function adjust_cachesize() { | |
return 1024*512*1024; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Adjusting the warning limit in Autoptimize to 1GB