Title: Massive disk space usage
Last modified: March 11, 2024

---

# Massive disk space usage

 *  Resolved [swinggraphics](https://wordpress.org/support/users/swinggraphics/)
 * (@swinggraphics)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/massive-disk-space-usage/)
 * 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](https://wordpress.org/support/users/delyandelov/)
 * (@delyandelov)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/massive-disk-space-usage/#post-17492081)
 * Hello [@swinggraphics](https://wordpress.org/support/users/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:
 *     ```wp-block-code
       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;
       }
       ```
   
 *     ```wp-block-code
       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/](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](https://wordpress.org/support/users/swinggraphics/)
 * (@swinggraphics)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/massive-disk-space-usage/#post-17492195)
 * 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](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.

 * ![](https://ps.w.org/sg-cachepress/assets/icon-256x256.gif?rev=2971889)
 * [Speed Optimizer - The All-In-One Performance-Boosting Plugin](https://wordpress.org/plugins/sg-cachepress/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-cachepress/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-cachepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-cachepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-cachepress/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [swinggraphics](https://wordpress.org/support/users/swinggraphics/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/massive-disk-space-usage/#post-17492195)
 * Status: resolved