If you want to improve your WordPress website’s speed and security, you may have considered using the Autoptimize cache plugin. The good news is that this plugin is compatible and can significantly improve your website’s performance when used together.
Autoptimize is an optimization plugin that helps you reduce the size of your website’s CSS, JS, and HTML files. By aggregating and minifying these files, Autoptimize can speed up your website’s load times, making it a popular choice for WordPress users.
By using WP Ghost and Autoptimize together, you can significantly improve your website’s speed and security.
Let’s take a closer look at how these two plugins work together to optimize your website.
Optimize and Combine CSS and JS files
One of Autoptimize’s key features is combining CSS and JS files into a single file. This can significantly reduce the number of HTTP requests your website needs to make, improving load times.
Combine CSS Files
- Go to Optimize section in Autoptimize.
- Check the Optimize CSS Code option to activate the CSS optimization options.
- Check the Aggregate CSS Files to combine all CSS files into one random cache file.

Combine JS Files
- Go to Optimize section in Autoptimize.
- Check the Optimize JavaScript Code option to activate the JavaScript optimization options.
- Check the Aggregate JS Files to combine all JS files into one random cache file.

Note! Enabling these options may increase the size of your Autoptimize cache, so it’s best to test your website’s performance with and without these features enabled.
Changing the Cache Path
By default, Autoptimize stores cached files in the /core/cache/autoptimize/ directory. This can reveal that you’re using the plugin, which could make your website a target for attacks.

You can use the Cache Path option in the Autoptimize settings to change the cache path. To hide the fact that you’re using the plugin, simply enter a custom directory name.
Change Paths in Cache Files
To activate WP Ghost and change the paths in the cache file, go to WP Ghost > Change Paths and activate the option Change Paths in Cache Files from the sidebar. The plugin will automatically change the paths in the background using WP Cron.

Note! If WordPress Cron is deactivated on your website, you can manually click to change the paths once the files are cached.
Conclusion
Using WP Ghost and Autoptimize together can significantly improve the speed and security of your WordPress website. Combining CSS and JS files can reduce load times and improve performance.
By hiding information about your WordPress plugins and themes, you can make it harder for hackers to identify vulnerabilities on your site. You can further improve the security by changing the cache path of Autoptimize and using WP Ghost to change the paths of cached files.