Hi,
I have a big Blog with 5 years old -> runing whith MT (4.32).
I have 14.000 entrys and rebuil Takes at least 4 hours.
There is any solution to rebuil from command line, to rebuild fastest?
thanks
Nicolás.
Reported on Movable Type 4.3
Hi,
I have a big Blog with 5 years old -> runing whith MT (4.32).
I have 14.000 entrys and rebuil Takes at least 4 hours.
There is any solution to rebuil from command line, to rebuild fastest?
thanks
Nicolás.
Reported on Movable Type 4.3
There's mt-rebuild. You can find it with a Google search.
As Mike has said, there is mt-rebuild.
You might also want to look in to streamlining your templates, publshing strategies, and other ways of making MT faster.
Or you could hire a consultant (as I am) and improve your project so that it rebuilds faster.
For instance, a project of over 14,000 entries from a large European publishing company rebuilds in less than 20 minutes.
Worth mentioning that it has over 100,000 k comments and quite some complex templates.
Hi, tanks by the replies (sorry for my bad english)
Im try whit mt-rebuild but I can't acces to my server comman line. shh o telnet is closed to my acount.
I try use a PHP script to invoke a mt-rebuild.pl
like this:
echo passthru('mt-rebuild.pl -mode="all" -blog_id=1');
but "mt-rebuild.pl" file take some time in complete the work and php time out is show.
¿There is any way to change script to show % of rebuild proces?
Example:
mt-rebuild.pl -mode="all" -blog_id=1
Done 1%
Done 2%
..
Done 100%
the task is like this:
linux (rining script in perl) show in php -> show in web browser
thanks
There is no way to get around that except move to a host where you can SSH into your account. Hosting Matters is a great host for Movable Type that lets you get SSH access as a standard feature. What I do with my site when I need to rebuild everything is I use Send2PQ (send to publish queue, a plugin by Endevver Consulting) and a custom perl script I wrote which runs it from the command line:
use strict; use lib('../../lib', '../../extlib/', './lib'); use MT; use MT::Blog;MT->instance();
my $blog = MT::Blog->load({id => $ARGV[0]});
my $batch = MT->model('pub_batch')->new;
$batch->blog_id( $blog->id );
$batch->email( $ARGV[1] );
$batch->save
or die "Unable to create a publishing batch and send content to the publish queue";
require MT::Request;
my $r = MT::Request->instance();
$r->stash('publish_batch',$batch);
require MT::WeblogPublisher;
my $pub = MT::WeblogPublisher->new;
$pub->rebuild( Blog => $blog );
I run that from within the Send2PQ folder.