Hello @born2excite,
In the best case scenario automated cleanup of the plugin assets is not required. Once the files are generated they will be used as long as they are not outdated. This usually happens if your WordPress uses java scripts or CSS files that include dynamically generated content, thus our plugin creates a new copy of the file. Take a look at the files that are generated and compare them to get a better understanding which plugin generates the dynamic content and use the available tools to exclude it. This being said its safe to remove the files generated so far and if needed use the top administrative menu tools of our plugin to purge all cache stored by our plugin.
Best Regards,
Simeon Boev
Hello Simeon Boev (@k3llanved)
I’m not sure you understand the problem. The Speed Optimizer plugin itself generated 9,440 files adding up to more than 10 GB in size. For example:
siteground-optimizer-combined-css-00481e2423f4fac0b11e6f2e6157cc61.css
I have 9,440 such files in the Siteground Optimizer Assets folder. The Siteground plugin has created a new combined assets file 9,440 times and has not deleted the old files. The Siteground plugin is best suited to clean up after itself.
You’re telling me to look at each of the 9,440 files to determine which plugin created the dynamic content! The Siteground plugin created the 9,440 files and It’s not cleaning up after itself, that’s what’s important.
If I hear you correctly, deleting these 9,440 files is safe and I should then clear the cache, is that right?
Cheers,
Julian
You can safely remove the files and purge the cache or delete them manually. As Simeon has explained the Speed optimizer creates a new file each time it detects new content is generated.
The easiest way to find what script is causing this behaviour is to:
- Delete the current files and load the website where a new file will be generated.
- Load the site in incognito
- Monitor the uploads/siteground-optimizer-assets folder
- see the difference between the last two generated files
You can then find which plugin is generating those files by looking for a pattern or variable.
After you find it you can exclude the dynamic scripts from the combination and prevent the generation of multiple files that take from your disk space.
Best regards,
Georgi Ganchev
Than you, Georgi Ganchev (@georgiganchev)
Please close this ticket.
Best Regards,
Julian