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.
Related Posts:
- How can I add an image upload field directly to a custom write panel?
- Checking if a file is already in the Media Library
- Saving data-URI to media library
- Can I use the wp media uploader for my own plugin?
- Change Media Uploader default directory
- Do I need to use WP_Filesystem when creating a downloadable file on the fly?
- Changing upload directory for plugin uploads only
- Upload file to remote storage
- Why are two functions over-riding each other?
- $wp_filesystem returns NULL. What are the dependencies?
- WordPress Media mime type filter problem 4.0
- Using the component outside the editor. select(‘core’) is null
- Why cant the WP Filesystem API read googlefonts.json?
- Using wp_filesystem in Plugins to store customizer settings
- Proper way to hook wp_get_attachment_url
- Getting Details Of Uploaded Image
- Sharing a common set of image files for media library, across all sites within multisite
- Uploading images from a custom page using blueimp uploader?
- Hook to get image filename when it is uploaded
- How to send email in wordpress with more than one attachments
- Using the default wordpress uploader inside plugin
- Files automatically added
- What filter should I use to insert a button inside on Media>Add New
- Changing upload dir in a plugin regardless of post type
- How to replicate Media Library “Add New” on Plugin Settings Page
- Plugin writing: access file that was just uploaded
- Custom delete option button in plugin settings
- How to enable sorting in custom media uploader in plugin
- Create a new post using rest api and save featured image using an external image url
- Is file_get_contents() the only way for plugins reading local files OR does WP_Filesystem_Direct::get_contents() even work?
- Where to write custom logs in WordPress
- wp_filesystem put_contents issue with owner/group
- Why is the temporary upload always 4.1K
- Upload multiple images and insert them into custom html code
- wp_editor add media button not working
- WordPress Specified file failed upload test
- PHP File_exist() not working – Checking if File Exist in WordPress Theme Directory
- How to create a digital product download link that can’t be used twice?
- How to submit/upload data to database and in specific folder?
- Cleaning a filename after image sideloading a url that contains `%20`
- Get audio metadata on file upload
- How to move an image in a plugin to the upload directory and make it as a media of wordpress?
- Why doesn’t update_post_meta work for certain strings?
- wp.media Uncaught TypeError: Cannot read properties of undefined (reading ‘state’)
- Insert and read media from the WordPress library and call in the plugin
- Trying to rename a file upload as the hash of file content on wordpress
- Home page is not loading, where in other pages are displaying on the site
- Why is that only the first row getting inserted into Mysql table when i import csv file on backend custom plugin?
- WordPress Filesystem create CSS-File – get Shortcode ID for Name
- WordPress5.2.3: Better File Download Plugin validation issue
- WordPress discards PNG file when uploading plugin file
- Hook for validating and rejecting frontend image upload
- Media Upload to custom database and Custom Directory
- Changed media upload path for plugin, but generates error & shows wrong url
- How to destroy or dispose wordpress uploder/manager?
- Why does unzip_file always return true but nothing happens?
- Displaying $_FILES data (simlar to $_POST)
- Changing upload directory for plugin uploads only
- How do you filter get_media_items by mime type in a custom media upload tab?
- Is it possible to convert various image types from remote URLs to WebP and then serve them immediately?
- upload script in plugin development [duplicate]
- WordPress upload path decalration
- Leveraging Core Functionality in Icon Upload Plugin [closed]
- Upload to a specific media folder created by FileBird Lite
- Load images from CDN and custom features to “Add Media” dialogue
- upload image to wordpress media library failed for custom post type
- wp media uploader and ID3 tags
- WordPress Playground and uploading permission issue
- Do uploaded files to /tmp/ get deleted in WordPress automatically?
- How to modify the uploads directory for wp.media.frame assigning an subfolder name
- WordPress Media Uploader not displaying image that has just been uploaded
- add_menu_page() with different name for first submenu item
- How can I add an option to the Page Template list from a Plugin?
- Build path for a custom portfolio plugin
- How to save block attributes when the output doesn’t change
- What is the difference between strip_tags and wp_filter_nohtml_kses?
- Scheduled event does not run at midnight
- Plugin options table,is the data serialized
- Woocommerce add custom button to backend order table
- Converting theme widgets to plugins?
- Sample — test — data for large WordPress install
- What is rich_editing?
- How Can I setup WP CLI on Windows development machine running AMPPS?
- WP_LOCALIZE_SCRIPT doesn’t work
- JS / JQuery form validation in backend admin menus
- Is it possible to delay execution of shortcode output callback?
- wp_enqueue_script + wp_enqueue_style Since When
- Is there any way to allow a plugin to write over a previous version?
- How do i validate data entered in a meta box so that only floats can be entered in a field?
- Modify users.php page to create page/post on button clicked
- get_current_screen() return null
- Frontend language per user
- How to run a function on plugin’s options page?
- What stylesheets are available in core?
- Prevent Delete Attachment by URL or When Submit
- Search: how to extend the existing search to include a custom table
- Plugin development: delete options when updating to a new version
- Is there documentation reference for forms in menu and setting pages?
- Custom code for WordPress dynamic menu
- Plugin templates vs Parent Theme