Changes between Version 1 and Version 2 of Ticket #57386, comment 23
- Timestamp:
- 01/07/2023 06:32:59 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #57386, comment 23
v1 v2 41 41 === Notes 42 42 - The bug is ''likely'' to occur for a simple directory structure, but will ''always'' occur with multiple nested directories and files. 43 - `clearstatcache()`/`wp_opcache_invalidate()` don't resolve the issue (note: `move_dir()` is not recursive, so calling `clearstatcache()`/`wp_opcache_invalidate()` on each moved file would mean looping `$wp_filesystem->dirlist()`, negating the performance benefits of `rename()`). Either way, the issue is with VirtualBox's cache, not PHP's cache .43 - `clearstatcache()`/`wp_opcache_invalidate()` don't resolve the issue (note: `move_dir()` is not recursive, so calling `clearstatcache()`/`wp_opcache_invalidate()` on each moved file would mean looping `$wp_filesystem->dirlist()`, negating the performance benefits of `rename()`). Either way, the issue is with VirtualBox's cache, not PHP's cache, so PHP will just keep getting the same incorrect information from VirtualBox until its cache is cleared. 44 44 - Detection of VirtualBox would at least require system level command execution. **''If''** `shell_exec/exec()` in Core is a non-starter, then exploration into the reliability of detecting VirtualBox would also be a non-starter.