Skip to content

Instantly share code, notes, and snippets.

@ajmaurya99
Created October 12, 2020 13:47
Show Gist options
  • Save ajmaurya99/057aff989fbaa9c04a08d12f04c30541 to your computer and use it in GitHub Desktop.
Save ajmaurya99/057aff989fbaa9c04a08d12f04c30541 to your computer and use it in GitHub Desktop.
Increase Autoptimize cache size from default 512 MB to 2 GB
<?php
add_filter('autoptimize_filter_cachecheck_maxsize', function () {
return 2 * 1024 * 1024 * 1024; // 2 GB
}, 10, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment