fauzanjeg

Increase Autoptimize Cache Max Size

Sep 2nd, 2021 (edited)
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. /* Increase Autoptimize Cache Max Size */
  2. function increase_autoptimize_cache_max_size( $size ) {
  3.     /**
  4.      * Formula: GB * MB * KB * B
  5.      *
  6.      * Use MB : MB * KB * B (Example 600MB: 600 * 1024 * 1024 )
  7.      * Use GB : GB * MB * KB * B (Example 4GB: 4 * 1024 * 1024 * 1024 )
  8.      */
  9.     $size = 512 * 1024 * 1024;
  10.  
  11.     return $size;
  12. }
  13. add_filter( 'autoptimize_filter_cachecheck_maxsize', 'increase_autoptimize_cache_max_size' );
Add Comment
Please, Sign In to add comment