[wp-trac] [WordPress Trac] #18826: wp_maintenance() expiration time needs to be filterable
WordPress Trac
wp-trac at lists.automattic.com
Fri Sep 30 15:09:17 UTC 2011
#18826: wp_maintenance() expiration time needs to be filterable
-----------------------------+-----------------------------
Reporter: jaredh123 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 3.3
Severity: normal | Keywords: has-patch
-----------------------------+-----------------------------
.maintenance files expire after 10 minutes if something goes wrong. 10
minutes is a long time, when most upgrading operations are attempted and
fail within 20-60 seconds.
I propose three things:
1. changing the default expiration to 5 minutes (300 seconds)
2. Adding a filter to allow plugins and themes to filter this time to
increase/decrease it
3. Also, while I was in there, it seems prudent to attempt to delete the
file if it has expired. The only argument I could see against this is
that possibly it might be expensive if the file can not be deleted and wp
attempts to delete the file on every page load. So I can take or leave 3
(and 2), but #2 I think is really important.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18826>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list