[wp-trac] [WordPress Trac] #10611: Support Partial core upgrades
WordPress Trac
wp-trac at lists.automattic.com
Sat Aug 15 02:46:05 UTC 2009
#10611: Support Partial core upgrades
-----------------------------+----------------------------------------------
Reporter: dd32 | Owner: dd32
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Upgrade/Install | Version: 2.9
Severity: normal | Keywords:
-----------------------------+----------------------------------------------
Comment(by dd32):
> I think this is a really good idea for point releases and point releases
only.
I'm not too sure of that, Take this example for example:
{{{
$list = $zip->get_list_of_files();
foreach $list as $file
if $partial_upgrade_enabled &&
file_exists(ABSPATH . $file) &&
file_get_contents(ABSPATH . $file) ===
$zip->extract_as_string($file)
then
Continue;
..Extract the file and overwrite the local one here..
..Either the new file is different, or is a new file..
end foreach;
}}}
It saves IO time basically, only changed files get written.
If the CRC32 route was taken, it could be even faster as the Zip
decompression wouldn't have to be done.
> It needs to do something to confirm that the rest of the files are OK
too though.
Thats where the CRC32 or file contents check(as above) would be used
I dont think having a zip with only the changed files is a good solution,
was just an offered one.
> I did suggest this during last nights meetup :-)
I only skim read it.. Must've been where the idea came from, I dont think
there' was that much chat about it if i missed it?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10611#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list