Why is there a 'cache' folder in my /wp-content/uploads folder? Why is there a 'cache' folder in my /wp-content/uploads folder? wordpress wordpress

Why is there a 'cache' folder in my /wp-content/uploads folder?


Enable/Disable Caching in wp-config.php.

Another caching mechanism you could take advantage of is the default WordPress object cache. You can enable or disable the native WordPress object cache using your wp-config.php file, like so.

define('WP_CACHE', true);

Simply add the above code directly above /* That's all, stop editing! Happy blogging. */ using any text editor (Notepad is fine) and save the file.


For me, it was malware that had installed itself onto my site, the docs and cache folder where simple a hideout to execute its malicious code (wordfence flagged all the files). I couldn't delete it through the wp-files plugin, so i did it through ssh using the command

cd /home/bitnami/apps/wordpress/htdocs

sudo rm -f -r docs