• Resolved swinggraphics

    (@swinggraphics)


    In Plan Details > Statistics, it shows a site is using 7.5 GB of disk space. In WordPress Site Health > Info the Total installation size is 2.60 GB.

    Looking in File Manager, I found that the sgo-cache folder is 5GB.(!)

    Automatic Purge is enabled in Caching Settings. (And even if it weren’t, there’s probably no reason it should grow to that size.)

    This is the most egregious example, but I remember clearing a 2+GB cache on another Siteground site, and one or two others maybe around 1GB. Clearly something is buggy here.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Delyan Delov

    (@delyandelov)

    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.

    Thread Starter swinggraphics

    (@swinggraphics)

    In the case of this site, CSS and JS minification and combination are disabled.

    I installed WP Crontrol to investigate the cron events. I deactivated and reactivated Speed Optimizer. “siteground_optimizer_check_assets_dir” is not in the list.

    I will explore the cache directory next time and try to discern what is taking up so much space, but it definitely would be great if it purged once a day with the cron event.

    BTW your File Manger has a bug where it cannot browse some of these directories. Screenshot of the File Manager trying to load endlessly and the contents of the directory in FTP: https://imgur.com/a/6PnSvFd

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Massive disk space usage’ is closed to new replies.