Standard location for plugin to save/cache files?

It would be nice if WordPress had a standards based cache directory, but since it doesn’t I think the best option is to keep it in the plugin folder itself.

Uploads are in my opinion for actual uploads and cache files are not really considered as such. I think it easier to manage , reduces possible conflicts and to be honest it’s where I would look if a plugin has this functionality.

tl;dr: The cache files are part of the functionality of a specific plugin and should be packaged with it.

Leave a Comment