No the depth of your directory structure has almost no impact to load time.
Maybe if your structure is very depth and the URLs for the images are very long you can hit the maximum length or your markup blows up. But a flat hierarchy should not be a problem as long as you keep the file names short enough.
Then again, if your store everything in one directory, there may be name collisions. But WordPress checks for that during the upload with wp_unique_filename()
, so you should not worry about that too.
Related Posts:
- Creating directory in uploads – wp_mkdir_p() or WP_Filesystem?
- Convenient way to use wp_filesystem
- Is there a WP Way of getting a filehandle?
- Is fopen() forbidden in WP?
- Converting fopen/fwrite operations to WP_filesystem
- External pages redirecting back to wordpress
- WordPress Login doesnt respond after using Filezilla to upload my files on the server
- List of files/folders writable by the web server?
- Save PDF File From Plugin to Filesystem /wp_upload
- accessing files in custom folder in wordpress
- What dependencies should I load and to use the WP_Filesystem?
- What files are safe to delete after a security breach in WP content folder?
- Failed opening required
- Correct file permissions for in-browser updates using WP-CLI
- WordPress installation on digitalocean eating the server storage
- Serve contents from Nextcloud / WebDAV
- temphangle variable missing when using wp_filesystem copy
- File ownership for file tree php user ID – Folder permission 775
- How to write to a text file and save it in a folder for later download?
- 403 Error on “/”
- Get names and paths from unzip_file()
- Should I use Filesystem API for reading files or listing directories?
- saving file to external server vip
- Time limited file download upon form submit
- Does unzip_file() over-write by default?
- What’s the best way to dedupe a table?
- What are the best practices for using a caching plugin on a shared host?
- Optimize apache for WP use
- What’s the difference between wp_insert_user() and wp_create_user()
- How to fix wordpress slow first time load (Local Server)?
- How to convert the file path to a URL of the same file?
- Any reason why wp_cache_set not to work?
- In terms of performance – Is unmanaged VPS better than a managed one – for WP sites?
- How can WordPress be made more memory efficient?
- WordPress speed slow after .5 million single image post via wp-cli
- Defer Code in Widgets – Page Speed
- Is there any performance consideration when using Custom Post Types?
- Universal problem: first request after ~25 second inactivity always slower (~1 second) than subsequent requests (~1/10sec)
- Relationship between performance and database size
- Changing BIGINT to INT
- WordPress website loads but is not displayed until page scrolled
- How to move WordPress theme files into a subfolder without breaking the theme?
- How do I maintain static directories on multisite subdomains?
- How much will mounting wp-content on a separate NFS server impact performance?
- Image Preloading
- WP_Query times out
- How to check if txt file exists inside template folder?
- WordPress Scalability – One Instance or Several?
- Looking for most performant way to execute several similar WP queries within shortcodes
- It is a good idea to store values from the global $post if they are used multiple times?
- Relative links for performance?
- cross-host benchmarking with wordpress
- Performance problem with first load
- Does registering multiple shortcodes impact performance?
- Correct way to perform non-cacheable DB query
- Reasonable Size Limit to options entry
- Improve performance by removing unnecessary database queries
- Is it possible to make WordPress PHP faster through caching or compiling it?
- W3 Total Cache: use cache for request with ignorable query string [closed]
- Running WordPress as FTP user?
- How to analyze wordpress plugin performance
- how to use shortinit in wordpress
- use of 10 new WP_Query : loading too slow (with url) [closed]
- Optimizing site speed by localizing paths
- How to replace file_get_contents() with a WordPress Filesystem call
- Namespaced shortcode?
- How to combine multiple wp_insert_post into one in order to gain better performance
- Is it better to store images and other files in the root directory or the theme directory
- How to optimize on-the-fly theme switching for mobile browsers?
- Theme, WordPress Version, MySQL Version, PHP Version Update affected files and folders
- Does WordPress create a new Linux user when creating a new WordPress blog?
- Last-Modified header support doesnât speed up server processing – want more
- Look for a file in a theme before loading from plugin
- Why does Thickbox jQuery load on my site?
- get_template_directory() returns wrong address on VPS
- Performance testing a WordPress site locally?
- How do I serve fully cached full HTML on cloudfront
- Page load timer?
- Pages section (only) not loading after publishing large number of pages
- How do you make a site load faster when offloading is not an option?
- how to embed Pdf and Video Without effecting page speed?
- Save media files (images) to database instead of the filesystem
- WordPress is very slow, even it’s not opening sometimes
- Regular XML-RPC timeouts
- Best way to store 1 billion+ posts?
- Optimize WP site for millions of posts
- Change loading order of blocks
- Can’t Install WordPress (local) Failed to open file wp-includes/wp-db.php
- Avoid ‘uploads’ 777 permissions: Potential threat or clean solution?
- Why WordPress takes time to make request to save post?
- Fatal error: Allowed memory size of bytes exhausted (tried to allocate 36 bytes)
- Custom Post Type vs Shortcode: Which one is more performant?
- Post OrderBy slow performance
- How to handle high load of traffic of my server
- Using tag or inline style attribute?
- WordPress and TTFB (time to first byte) stats
- What’s a good tool for speed benchmarking? [closed]
- How do I upload my WordPress code files from previous website onto local host WordPress website?
- Can running a WP-Cron to update_post_meta cause performance issues?
- Hook on opening a media/document