Skip to content

Instantly share code, notes, and snippets.

@ellegaarddk
Last active March 11, 2019 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ellegaarddk/d978aa1e403a44c97d9f96efa414f994 to your computer and use it in GitHub Desktop.
Save ellegaarddk/d978aa1e403a44c97d9f96efa414f994 to your computer and use it in GitHub Desktop.
Autoptimize: adjust the level of the autowarning on cache size to 1GB
<?php
// #Adjusting Autoptimize warning limit to 1GB
add_filter('autoptimize_filter_cachecheck_maxsize','adjust_cachesize');
function adjust_cachesize() {
return 1024*512*1024;
}
@ellegaarddk
Copy link
Author

Adjusting the warning limit in Autoptimize to 1GB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment