Are there official guidelines on where a plugin should cache files?
If not, is there a best-practice out there that I can follow?
For example, a plugin grabs content from a back-end system benefits from caching the file so it doesn't repeatedly fetch the same content from the back-end.
Searching here and elsewhere is tough as most queries lead to caching plugins or database tutorials.
My instinct says to put them into a sub-directory of wp-content/uploads
.
My secondary instinct would be to keep the files within the plugin's directory tree. This keeps plugin data grouped together but doesn't follow (what appears to be) WordPress architecture where user content is in /uploads
.
Aucun commentaire:
Enregistrer un commentaire