Massive disk space usage | WordPress.org

[ad_1]

Hello @swinggraphics,

the issue is generally caused by some dynamically generated CSS/JS files that are forcing the re-generation of the CSS/JS combination file on every request. When this happens, the culprit should be identified and excluded from the CSS/JS combination functionality in our plugin. The following filters can be used as well:

add_filter( 'sgo_css_combine_exclude', 'css_combine_exclude' );
function css_combine_exclude( $exclude_list ) {
  // Add the style handle to exclude list.
  $exclude_list[] = 'style-handle';
  $exclude_list[] = 'style-handle-2';

  return $exclude_list;
}
add_filter( 'sgo_javascript_combine_exclude', 'js_combine_exclude' );
function js_combine_exclude( $exclude_list ) {
  $exclude_list[] = 'script-handle';
  $exclude_list[] = 'script-handle-2';

  return $exclude_list;
}

More information regarding the custom filters can be found here:
https://www.siteground.com/tutorials/wordpress/speed-optimizer/custom-filters/

Also, there is a cron event that should clear the siteground-optimizer-assets folder once a day if exceeds 1000MB. The cron event is called
siteground_optimizer_check_assets_dir
so you can check if this event is scheduled correctly.

If none of the above works for you and your site is hosted at SiteGround, you can open a support ticket and our support team will help you identifying the cause of the issue.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer