Optimizing Movable Type's Standard Templates for Speed (part 1)

| 136 Comments | No TrackBacks |
Overall, Movable Type has some pretty decent standard templates.  Optimized for SEO, standardized class names and IDs, nicely separated in modules...  There is some learning involved if you want to understand all the conditional stuff that is going on under the hood, but once you know what you are doing they are quite easy to maintain and customize.  Not to mention the styles that are already available.
But if you install Movable Type out of the box and pick the standard, 'Classic' blog design using the default settings, you are not actually using the full power of Movable Type.  There are several settings you can change that will make publication of your blog (a lot) faster.

First tip: 'Manual' publishing mode

By default, all templates in a standard Movable Type blog are set to be published 'statically'.  This means that at publication time static HTML (or other) files are written to disk.  Publication is done by the actual CGI script that gets the publication request: most of the time this is mt.cgi, but sometimes also mt-comments.cgi, mt-tb.cgi or mt-cp.cgi (for comments, trackbacks and 'community' contributions).

Whenever something needs to be published in Movable Type, all 'index' templates are published again, along with some archive templates.  Generally this is a good idea: when a new entry comes in, you want to update the entry that contains the new comment but also the main page (to update the comment count) and various archives (for the same reason).  You might even want to update your RSS feed.

But do you really want to update the javascript file of your blog, a file listing some API endpoints, or the stylesheet of your blog?  No?  Tough luck, because Movable Type is publishing them again anyway, just because they are index templates set to 'static' publishing.  Each time you hit that 'Publish' button, you are publishing three files that basically never change.  Seems like a waste, no?

Fortunately, there is an easy fix: go to the screen listing your blog's templates.  


Open following templates, one by one:
  • Javascript
  • RSD
  • Stylesheet
For each of these templates, click 'Template Options' at the bottom and set the publication mode to 'Manually', then save.


What did you just do?

From now on, these templates will never be published to a file unless you explicitly hit the 'Publish' option for that particular template.  So you are still free to tweak your stylesheet as desired, you just won't be republishing your changed file over and over again anymore in the future.

Hooray, you just shaved half a second off the publication time of each entry, comment or trackback.  It might not seem like much, but when you start getting thousands of comments a day, this sort of thing really starts to count...

(Why are these files set to 'static' publication anyway?)

You might be wondering why these files are set to 'static' publication to begin with?  Wouldn't it be much easier to just set them to 'manually' by default? If all users of Movable Type were experts, this would indeed be the preferable solution.  But since this is not the case, the current situation is probably preferable.

Why?  Imagine you are a novice user setting up your first MT blog.  Imagine you just set up everything (keeping the defaults), wrote your first entry and hit 'Publish'.  Next, you go to look at your blog.  What do you see?  An ugly, unstyled page (remember, no stylesheet) with a broken comments form (no javascript file...).  Not the ideal first impression...

Now if only there was a 'Publish once, then revert to manually' setting...

...hmm, good idea for a feature request :-)

UPDATE: Here is part 2 of this series.  

No TrackBacks

TrackBack URL: https://www.movabletips.com/cgi-bin/mt/mt-tb.cgi/26


Thanks for good tune of my MT blog. ;)

's Hospital emergency observation room to see him. At this point mulberry outlet uk , Yang J mulberry sale un undergoing infusion therapy, recalled that last night around 7:40, he is the company near the pier overtime, suddenly smelled a strong pungent odor. It did not care that after about an hour, the taste is hogan still not dispersed,

's "Daily News" message,abercrombie pas cher, the Tokyo Metropolitan Govern abercrombie pas cher ment in hollister order to determine the Diaoyu Islands "purchase price" and "use value" and formulated the guidelines for the measurement on the island, and is always looking for opportunities on the isla louboutin nd. August 20 morning,holliste

"The dire hogan outlet ction and focus of the current round of reforms with all previous reforms signi abercrombie ficantly different from that of the more meaningful reform, no longer confined to structural adjustment louboutin ,hogan outlet, while focusing on prominent functional transformation,abercrombie, captures the essence and ke

's current GB7247 standard laser on the human hogan outlet body is divided into four risk measurement standa mulberry sale rds observed within the laser beam on the eye MPE (maximum possible effect). A standard of the laser, the output power is less than 0.4 mW,hogan hogan outlet, which is because such energy laser in any condition

'do not want to go, hollister jobs and more,hollister, endless teacher not to eat'." Qin Guangdong said. Now, abercrombie whenever I see snow cold with chalk writing on the wall last words: no worries, just happiness. The font will let Qin Guangdong tender reminds her daughter ray ban : "I doubt that she committed suicide ingesti

'hands There are 3 names compensated dating girl. H hogan e added that mor air jordan pas cher e recently the case is by understanding customers online game,hogan, "playing machine she was asked not to make money,air jordan pas cher, please do hire girlfriend",aberc abercrombie rombie, the situation is cause for concern. Christmas is appro

䥭灲潶楮朠书氠䙯潴扡汬⁌敡牮楮朠却牥湧瑨猠㱰㸠周攠業灯牴慮捥映汥慲湩湧⁴桥⁐污祢潯欼 moncler outlet 扲㸊㱢爾੐牡捴楣楮朠瑨攠灬慹猠楳⁦畮Ⱐ慮搠慬獯⁶敲礠業灯牴慮琮⁗桥渠祯甠浡獴敲⁹潵爠灡牴映瑨攠灬慹⁩琠睩汬⁳瑲敮杴桥渠祯畲⁴敡洠慮搠祯畲獥汦⸠䥮牤敲⁴漠獴慲琠汥慲湩湧⁡⁰污礬慫攠獵牥⁴桡琠祯甠晩牳琠灡礠慴瑥湴楯渠瑯⁴桥⁩湳瑲畣瑩潮猠睨敮⁴桥礠慲攠杩癥渮⁁猠祯甠獴慲琠瑯⁰牡捴楣攠瑨攠灬慹慫攠獵牥⁴漠獬潷⁩琠摯睮Ⱐ瑨敲攠楳漠獥湳攠楮⁰牡捴楣楮朠敲牯牳⸠偲慣瑩捥⁩猠愠杲敡琠瑩浥⁴漠来琠獯浥⁥硴牡⁨敬瀬⁳漠楦⁹潵⁡牥⁳瑲畧杬楮朠睩瑨⁡⁣敲瑡楮⁰污礠牥浥浢敲⁴桡琠祯畲⁣潡捨敳⁡牥⁴桥牥⁴漠桥汰⁹潵慳瑥爠瑨攠

's tricycle (Right) parked downstairs fo hogan outlet r t louboutin pas cher oo preoccupied to take care of the child's parents, the child will be entrusted to the school near the "small table" is a last resort option. Children to school, school is not abercrombie pas cher only someone transfers, noon, in the "small table" to eat and rest. In early 2010

's daughter introduced casualties are ready to go live,abercrombie france, Zhej abercrombie france iang louboutin migrant,louboutin, the proposed work is picking oranges. Time of the incident,hollister, they are near the roadside waiting for the bus station bus. Reporters interviewed were detained by police near a shopkeeper,mu hollister l

's Office requested to cooperate with the investigation. In order abercrombie to pro abercrombie france ve his innocence and innocent,abercrombie, Ms. Liu immediately asked female employees leaving examination,abercrombie france, the inner coat off and pocket all dig o mulberry outlet uk ut all the things,mulberry outlet uk, the results prove that sh

Today I went to several stations,hollister france hollister france , tickets are not coins to find, do not know how " Yesterday morning, the repo louboutin rter received a number of the public to reflect yesterday, take subway line, second line, third line when they occur No vending mac hollister france hine coin changer exchange phenomenon. Thi

'federal education Si Kao' membe louboutin rs continue to send the message: 'Si Kao The mulberry sale answer is booking, the high accuracy bale, test after the payment,louboutin, need, please contact QQ number × × × × × × '. "Accordi hollister ng to Liu introduced, since entering in August, you often someone in the group message or UR

charity Jiangsu pe ray ban rmit regulations" to regulate charitable donations admi louboutin nistrative licensing procedures. This plan provides for only two fundraisers do not need to apply for administrative permissio mulberry outlet n,ray ban, that charitable organizations within the scope of its business in charity,louboutin, to he

's one hundred fifteen mine included air jordan close ranks, before the Spring Festiva hogan outlet l will be basically all closed. Kept one hundred ten coal mines,air jordan, twenty main business has officially taken over one hundred 0 two,hogan ou mulberry outlet tlet, the person in charge of new mines have been appointed, the total numbe

​​drunk driving gettin louboutin g into abercrombie france the heart. For vehicle population over 180 million,louboutin, nearly 190 million people car drivers today's China, the air jordan pas cher hard-won achievements. Drunk driving remediation special action, the nation's public security departments for drunk driving "zero tolerance" and press t

's Beijing local household registration the hollister france family, will not be able and then the new louboutin purchase of housing; already has a a sets and more housing's field household family, nor longer purchase of housing; In the Beijing no housing's outsiders, if you want purchase abercrombie pas cher of housing, you must provide in Beiji

's two high Duan no "He Zi Z abercrombie france i" The name of the staff and students, the schoo ray ban pas cher l and the police were also from not received reports related to reflect. For "He Zi Zi 2012" Use of web publishing false statements, disinformation framed behavi hollister france or, the public security organs will be investigated and dealt w

Moreover,hollister hollister , China's assistance is increasingly focused on helping develop the a abercrombie bility to build their own island to improve their livelihood.

Pacific Islands Forum Cui Speaking after the meeting, said the significance of the hollister outlet dialogue,abercrombie, the Forum Dialogue Meeting is now real

Party committees, governments and discipline hollister france inspection organs resolutely implement the ce hogan outlet ntral major decisions concerning the deployment of anti-corruption, honest government, and a solid grasp of the long-term struggle against co hollister outlet rruption, foundation work, construction of anti-corruption efforts to

Because the operation of the abercrombie pas cher business development staff was most understanding of the corporate r hogan outlet estructuring program have the final say, are eligible to have the conditions to participate in democratic decision-making, democratic management and democratic supervision, barbour outlet "open, just in order to better

has been removed from broa appointed Wang Zhongjing ambassador to the Asian Development Bank dcast TV Station,appointed Wang Zhongjing ambassador to barbour sale the Asian Development Bank,barbour sale, Advertising Co.,hogan outlet, Ltd. General Manager,mulberry outlet, refer the case to prosecutors for further investigation.


Zhang after the name of his hogan outlet r

's first visit to Russia, accompanied parajumpers outlet by his wife Peng Liyuan.

When the parajumpers y stepped off the plane,parajumpers outlet, Peng Liyuan a dark blue double-breasted coat and blue scarf with people left a deep impression (on the map).

Subsequently, the Internet hollister france rumors that the body suit and the pull of

According to the "Zhejiang Xian hogan ju nutrit barbour uk ional status of school-age children in rural areas 175 analysis" paper shows that the test is the U.S. National Institutes of Health NIH funds projects, the im moncler outlet plementation period of May 2003 - February 2007, and the "children of school age in vivo plants

Yiyang City,parajumpers, Hunan Sat parajumpers ellite TV, according to the momen barbour uk t during the day becomes night,barbour uk, hail smashed windows at 16:30 on April 18, Lotus Road Yiyang day suddenly becomes night, strong winds accompanied by hail and heavy rain held off.
barbour pas cher


No tourists casualti

earthquakes, and other areas to monitor earthquakes above 3.0; in densely pop barbour sale ulated and economically de barbour pas cher veloped areas initially built seismic intensity breaking news network,barbour sale, 20 minutes to complete the seismic intensity quick report; earthquake prediction capabilities continue to improv hollister france e

It is understood, barbour outlet barbour outlet, Ma barbour sale rch 19,barbour sale, 2012, a middle school staff Taihe Jiang Gan D547XX driving school all medium-siz parajumpers ed ordinary passenger numbers to Taihe Water Croucher school engage in advocacy activities.

level,parajumpers, 11 people were injured by car,hollister outle

As of 16:00 today, rescue workers were found 15 bodies o hollister f the victims, bringing the total o piumini moncler f 36 bodies of the victims were found.

Because now our technical staff in the above observation,hollister, a few observations barbour uk after cracks were found in gradually expanded, with some sinking every day

If the potential of these areas to be excavated,parajumpers, prospect parajumpers s for Sino-US economic and trade relations will be even m parajumpers outlet ore unlimited.

We actively evaluate the U.S. government welcomes Chinese enterprises to invest in attitude,parajumpers outlet, hoping that the U.S. side to t I am. "January 14 evening ake more

's products suspended 21 sc abercrombie pas cher hools to inform st piumini moncler udents wearing school uniform,abercrombie pas cher, and the procurement of students

(Xinmin reporter Li Xin)

service delivery testing organization,piumini mon barbour sale cler. "adding that relevant departments will be based on test results and make t

October 9, inspection and quarantine agencies hav abercrombie pas cher e archived all of this enterprise inventory and sam mulberry outlet ple sent to the laboratory for virus detection, Norwalk virus was not found.

Recent media reports, the students appeared in eastern Germany gastroint hollister estinal viral infection,abercrombie pas che

,barbour jacket
Chairman of the meetin barbour jacket g recommended that the twenty-first session of the Standing barbour outlet Committee for deliberation approved by the State Council,barbour outlet, "China and the Democratic People's Republic of Algeria on civil and com hollister outlet mercial judicial assistance treaties,hollister outlet," t

will be sanctioned,barbour outlet, let it pay the price. "legal expert barbour outlet s for advice,hollister, he said the hollister y would seriously consider and disclose the judicial interpretation will further be fully demonstrated,barbour uk, including soliciting views of the community.

's personal freedom a barbour uk l

Kunming resume operations in the petrochemical tanker carrier barbour jacket Oct. 28 (Xinhua) (ene barbour rgy channels Duan Biao) on October 26 in Kunming car parts Oil carrier outage event,barbour jacket, the CNS Energy Channel reporter interviewe barbour sale d today in Kunming,barbour, the official noted that Sinopec


"Aging society is coming abercrombie pas cher ,abercrombie pas cher, hogan outlet pension problem must be highly concerned,hogan outlet, focusing on studying." Hongzhong and explore Ruan made on the spot, said, on the one hand, to intensify the construction of hogan nursing homes, to meet the needs of more elderly pension, on the other han

Zhuang Ping introduced,barbo barbour uk ur uk, al hollister outlet though the locals also know that environmental contamination,hollister outlet, but still still eat these fish,hollister, and occasionally get the market to se hollister ll,hollister france, but not much more in the local digest.

Fish liver which the most serious hea

During the criminals attack, urology healthcare work mulberry sale ers,mulberry sale, regardless of danger,barbour uk, and the barbour uk criminals were desperate struggle, showing fear of rape, sacrifice and heroic spirit.

(Original title: Second Affiliated Hospital of Anhui Medical Univers parajumpers pas cher ity, rapid detection of in

First,barbour jacket, the selection o barbour jacket f jobs criminal legal oversight six c parajumpers outlet ivil trials and administrative litigation legal supervision 3 Crimes Investigation five comprehensive research five international judicial cooperation in a two,par mulberry outlet ajumpers outlet, registration time at 8:00 on June 20 to at 20:

's Procuratorate, the CYL Central Committee an hollister uk d other six depart hogan ments jointly issued a "further establish and improve the handling is not

"Opinions" requirements,hol parajumpers outlet lister uk, public security, procuratorate, the people's court,hogan, judicial and administrative authorities in handling juveni

According to the intro mulberry outlet duction of Sanya Municipal Government I hollister france nformation Office, Sanya city health departments to deploy business backbone,mulberry outlet, strengthenin hollister g the power of the health care department admitted for inpatient treatment carried out meticulously.

inflammation symptoms.

Guangxi Yuchai Machinery Group Chair parajumpers man Yan Ping is the National People's Congress, barbour uk he and Li Keqiang communication from the machinery manufacturing industry, talked about the energy saving and the development of China's economic tran barbour sale sformation and upgrading.

In-depth exchanges with experts

S hogan tudies show that China's excess mortality and subtropical regions lik hollister france e Europe and the United States,hogan, of which more than 86% of influenza-related exc hogan outlet ess deaths occurred in people aged 65 and over; and the United States,hollister france, Hong Kong and other study A (H3N2) subtype of influenza c

the direction of enterprise restructuring. hollister uk

Second, establish a sound corp parajumpers orate governance structure.

Should not be established on the corporate governance structure of the institutions, to barbour continue to improve the existing management model.

convergence,hollister uk.

Meanwhile,parajumpers pas cher, immediately organized the villag parajumpers pas cher ers to lead the provincial Prevention authoritative medic abercrombie al institutions lead recheck.

home in the treatment of all medical expenses by the Riverstone Power Limited,abercrombie.

(End) (Original title: hollister Guangdong Xinfeng a

Specific recruiting jobs, such as the number and hogan outlet qualifications, c barbour jacket andidates who can Shanxi Human Resources and Social Security Network (www.sx.hrss.gov.cn),hogan outlet, Civil Service Bureau o hollister france f Shanxi Province Network (www.sxsgwy.gov.cn

, Chemistry and Chemical Engineering, environmental sci

To fully understand the party and government piumini moncler organs austerity and suppression of public funds abroad (border) to barbour outlet urism importance and urgency of the work, with more enthusiasm, more effective measures, more solid work to further grasp the two documents are implemented.

According to statistic parajumpers outlet s

light fighter,hollister outlet, th hollister outlet e F -31 F -20 fighter with heavy level wit barbour jacket h joint operations,barbour jacket, will help to achieve cost, resources and other aspects of the overall plan.

"War m barbour outlet orphological changes the nature of required capacity must be restructured,barbour outlet, facing th

Source: China Radio Network Editor: Chen Jianxin,abe abercrombie pas cher rcrombie pas cher

That same book, the pirates' profits ar barbour sale e publishing six to ten times, they can offer to schools and teachers even more than 60% of the profits, the profits created a large piracy of interest between providers and hollister france schools

August 1973 to March 1978 Tongzi County, Guizhou Province reviv parajumpers al commune youth,parajumpers, private teachers, deputy secr piumini moncler etary of the commune.

August 2010 to September 2010 the Shaanxi Provincial Committee, deputy secretary of the provincial government.

S abercrombie eptember 2010 to December 20

Wu arms f mulberry sale urther pointed out that negotiations on anti-terrorism, a abercrombie pas cher nd China and Japan has landed major powers and neighboring countries co-operated.

Ch parajumpers outlet ina and Japan each have different information channels on terrorism,mulberry sale, information sharing is conducive to mutual exchanges,

Leave a comment