[wp-trac] [WordPress Trac] #17301: Keep the connection open when doing upgrades or long-running operations
WordPress Trac
noreply at wordpress.org
Mon Nov 2 22:56:05 UTC 2015
#17301: Keep the connection open when doing upgrades or long-running operations
-------------------------------------------------+-------------------------
Reporter: markjaquith | Owner: dd32
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future
Component: Upgrade/Install | Release
Severity: normal | Version:
Keywords: has-patch needs-testing needs- | Resolution:
refresh | Focuses:
-------------------------------------------------+-------------------------
Comment (by hubertnguyen):
Since I originally had this issue with Cloud Sites, I wanted to update
this thread. The reason why it was slow is because the updates were done
via FTP, with the FTP user/pass defined in wp-config.php
What happened is that every single file IO was transiting through the
public web because Cloud Site's FTP isn't located on a local machine (even
if it was, I'm not sure it'd be faster).
Using define('FS_METHOD','direct') in wp-config.php, the problem goes
away, but the update process is much more likely to fail because of
permission issues. Plug-ins or WP core files uploaded via FTP may not have
the proper group write permission. That's not an issue (for me) via FTP,
but it is an issue when PHP wants to write the files directly.
Anyway, the bottom-line is: people will slow FTP uploads can use the
direct method, at the risk of running into permission issues.
Regardless, it would be nice if things would never time out until
completion of the update.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17301#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list