• Be very careful of this plugin. Regular warnings from Siteground about the increasing size of my site can be traced back to this plugin storing more than 3GB of cache files, expanded from only a few K a week before, and I”d done no’d done nothing but add a single WC product to my site with a single jpg! Siteground needs to sort out this problem: it’s not new. Clear cache every time you log in the back end seems to be the only way to stop this monster for screwing everything up

Viewing 1 replies (of 1 total)
  • Plugin Support Georgi Ganchev

    (@georgiganchev)

    Hello @patboran ,

    This issue often arises from dynamically generated CSS/JS files that trigger the re-creation of the CSS/JS combination file with each request. To resolve this, it’s important to identify the files causing the problem and exclude them from the CSS/JS combination feature in our plugin. You can use the following filters to exclude specific files:

    add_filter( 'sgo_css_combine_exclude', 'css_combine_exclude' );
    function css_combine_exclude( $exclude_list ) {
      // Add the style handle to the 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;
    }

    For more details on using custom filters, please visit: SiteGround Custom Filters Tutorial.

    Additionally, there is a cron event named siteground_optimizer_check_assets_dir that should automatically clear the siteground-optimizer-assets folder once a day if it exceeds 1000MB. You may want to verify that this event is scheduled correctly.

    Typically, the contents of the /public_html/wp-content/uploads/siteground-optimizer-assets/ folder should be automatically cleared when you purge the SG cache from the admin area of the application, which helps reduce the folder’s size.

    If the issue persists, I recommend submitting a Helpdesk request through your SiteGround account. Our technical team can then review the case, investigate further, and provide more detailed information.

    Best regards,
    Georgi Ganchev
    SiteGround.com

Viewing 1 replies (of 1 total)

You must be logged in to reply to this review.