Using the Same Memcached Daemon for Multiple Movable Type Installations

| 149 Comments | No TrackBacks |
Memcached is a great way to speed up rebuild times and interface speed in Movable Type.  If you have control over your own server, setting it up is actually not that difficult.  Basically you install and start a memcached daemon and then you tell Movable Type to start caching data in it by setting a MemcachedServers directive in mt-config.cgi.
But what if you have multiple Movable Type installations, living on the same server or on different ones, all configured to use the same memcached daemon?

You might start seeing some weird things happening, which is logical.  Suppose one installation stores information about the entry with the id '1' and this data gets written to the memcached cache.  Next, suppose another installation requests information about an entry with the id '1'.  Normally, these two installations would be using different databases, so no problem.  But when they share the same memcached cache while using similar keys, data could get mixed up and might 'leak' from one installation into the other.

This may lead to all kinds of 'fun' results: users, blogs, entries, assets... showing up in the wrong places and breaking things.  Not exactly what you want.

So how to avoid this?  Using multiple memcached installations, all reserving their own chunk of memory? That might be a waste of resources, especially if some of the Movable Type installations are much smaller/less active than the others.  Not using memcached?  But what about the performance then?

Fortunately, the solution is simple: use the MemcachedNamespace directive in the mt-config.cgi file of each installation.  This directive will prefix all keys stored in memcached with the value you set for it.  So if your first installation has this line in mt-config.cgi:

MemcachedNamespace first

and the second installation has this:

MemcachedNamespace second

This will ensure that the entry with ID '1' will be stored once with a prefix 'first' and once with a prefix 'second' and there will be no mixups...

No TrackBacks

TrackBack URL:


Oh my goodness! Awesome article dude! Many thanks, However
I am going through issues with your RSS. I don't understand why I am unable to join it. Is there anybody else getting similar RSS issues? Anyone who knows the answer will you kindly respond? Thanks!!

consumer rebate",mulb mulberry outlet uk erry outlet uk, "shopping back to the" business model for hollister the site and its affiliated companies for alleged crimes by the relevant local police authorities, the business sector a criminal investigation. Initial investigation hogan ,hollister, involving site high rebates or rewards as b

' hogan outlet s Procuratorate announced today: Source air jordan pas cher : Sina News Center after two returned for supplementary investiga hollister france tion, the public security organs have been August 13 restated complement check now Procuratorate for examination and that, according to the circumstances of the case,hogan outlet, Liang has not c

's leafy Average price (per 500 grams,louboutin pas cher, the same below) decrea louboutin pas cher sed from 2.54 ray ban yuan to 1.51 yuan,ray ban, a drop of 40%. Decline more obvious,abercrombie, such as macaroni dishes,abercrombie pas cher, from last week dropped to $ 1.40 yesterday. Reporter yesterd abercrombie ay visited the market le

The new te ray ban st center to pro louboutin vide him with a magnifying glass, a box of stationery, a lamp, a clock, and drinking water.

Graduate hollister d from Anhui Xuan Hai great wealth in recent years, three times the national civil service applicants, because the lack of accessibility auxiliary missed exam.

's bank interest rates are still ray ban performed the first suite 8.5 discount policies an mulberry sale d regulations, conditional 30% discount still exists. Reporters yesterday, please call ICBC,ray b louboutin an, Bank of China,mulberry sale, Agricultural Bank of China, Construction Bank, Bank of Communications, China Merchants

'an about 2 million. According to the 2005 China Statistical abercrombie france Yearbook computing,abercrombie france, has completed the cleanup of seven pr hollister ovinces, autonomous regions and municipalities in 2004,hollister, administrative expenses nearly 40.56 billion yuan,abercrombie pas cher, if the "eating empty rat abercrombie pas cher e

paid off hogan " the final stage of pr ray ban eparation. Manned spaceflight launch system commander, director of the Jiuquan Satellite Launch Center on the 13th Cui Jijun said hollister france here, as at present,hogan, the major systems in the main test launch site inspection has been all over, spacecraft,ray ban, rockets and oth

Three hours later, everyone became a snowman, al hollister l head sweating.

Cold main equipment has reached hundreds of data items louboutin ......

Northerly tight, the pace of emergency.

Finally, through the data link to the pilots in the air, sending a message: "the col air jordan d weather,hollister, pay

work to hogan outlet ensure social stability; Fifth incident lessons learn air jordan pas cher ed,hogan outlet, the county food safety work,air jordan pas cher, especially school food safety special rectification.

According hollister france to parents wishes,hollister france, continue to observe students in the hospital still 15,abercrombie,

's guardian, that the right to move back to the living room, go back on it air jordan pas cher s agreement . By Mr. Wang refused, actually intensified bick hollister ering trouble, and even threatened to "anyway, has been in prison, sit one indifferent." Elderly resignation, but to ask mediation committees to come forward again. abercrombie M

's Note: The data are carried at ray ban pas cher the original.) Along the way, she gave her dre abercrombie paris ssed as a man, drink half a bottle of mineral water, live 4 hours hostels ...... Recently,ray ban pas cher, the "hero mot abercrombie her" deeds in Qianjiang widely spread. â–  Reporter correspondent Chen Han Yi surge intern Zou source

Third, Tang master mis abercrombie takes again,abercrombie, the s hogan outlet ame as turning late into the library, which was originally in the correction direction, but the angle of the rear bumper too, a little beyond the right edge of failure hollister .

In the coach tells the basic rules, Master Tang started the first attem

's next destina hogan milano tion erratic when, in the village came a pleasant surpris][/url], Dong Zhigang said doll is our home was dead,[url=][/url], no relationship with them,[url=]hogan bambino[/url], willing to pay 110,000 yuan as a one-time compensation. \"In this regard, Jiang Yunsheng one does not agree, they think love Love should not be in accordance with the old\" industrial injury insurance regulations \"to compensate, but should be in accordance with the new\" industrial injury insurance regulations \"to compensate, the two sides did not reach an agreement. Jiang Yunsheng said, after which he was March 21,[url=]scarpe hogan uomo[/url], the 22nd received two calls claiming to be Dong Zhigang friends are asking for compensation intentions. Thereafter, until April 20, have no contact with them and then negotiate. Jiang Yunsheng presented to reporters a \"Notice of Conclusion related injuries.\" Notice shows \"based on\" Work Injury Insurance Regulations,[url=][/url], \"Article 15 provides that finds Jiang Zhicheng on February 9,[url=][/url], 2011 in the work He died of sudden illness related injuries range in line, is now recognized as if injured (death) . \" Inscribed \"Kuitun City Personnel Labor and Social Security Bureau,\" date \"15 April 2011.\" Jiang Yunsheng said things in the past two months, and has not been resolved,[url=][/url],[url=]hogan donna[/url], they are now even Dong Zhigang not contact,[url=][/url], \"the cell phone down, playing landline said person is not,\" the banner just pull out in order to force Dong Zhigang resolve the issue of compensation If still see him,[url=]hogan uomo[/url], they will beg for his son through legal means workers\' compensation payments. Xinjiang with Zekui Tuen Chan lawyers law firm, law firm has accepted Jiang Yunsheng commission,[url=][/url], agency processing Jiang Zhicheng workers killed compensation issues. They demanded True Love according to the State Council promulgated a new \"Work Injury Insurance Regulations\" compensation,[url=][/url], compensation for death, funeral expenses and other about 41 million yuan. Mr. Chen said that they will first apply for labor arbitration, if no agreement is reached will go to court. April 20 at noon, the reporter came to love Love, manager of Xin-Ping Dong said that they carried out several consultations with the Chiang family, but did not reach a consensus. Currently, they are looking forward to the Bureau of Labor arbitration can have a fair result, \"let the other recognition, let us also recognized.\" e to make a good news for everyone: Dalian Economic and Trade Vocational school teachers to enrollment, enrollment threshold is v ery low, as long as the fresh secondary school graduates, we can exam- enrollment and,hogan milano,

Create an integration of urban and rural environment,holl hollister france ister france, such as Baoji Meixian remedia air jordan tion mode,air jordan, Hanzhong Xixiang County livestock and pollution control industries combined circulation patterns and urbanization of rural environment Xianyang Bi abercrombie nXian management mode,abercrombi

's political and econo ray ban mi abercrombie c structure,ray ban, Egypt and some other countries and the formation of dependence on fo hollister reign aid "begging the economy." After the Cold War, the United States in the Middle East and North Africa region, a single large, Egypt, Saudi Arabia, Bahrain, Jordan and other countries

's first w abercrombie pas cher ell-written essay obtained due to drop poi ray ban nts elite students enrolled. An essay won Peking University Peking drop points can be thrown to the olive branch, because of last year's national primary and louboutin pas cher secondary schools in Las innovative essay contest finals,abercrombie pas cher, live limite

hollister france ​​global trekking thus produced. In this way, with a three-whe hollister france eled cart,hollister france, a sleeping bag,hollister france, a tent, the 55-year-o mulberry outlet uk ld "Forrest Gump" walking in between continents. Along the way he won the world kindly strangers help. "I had to stay home in 1300,mulberry outlet uk, in th

' association grants, totaling fou hollister france r or five thousand a year. Some villagers said on condition of ano louboutin pas cher nymity,hollister france, this food compensation income families is generally a "protection of life",louboutin pas cher, is "life-saving money for needy families. The village villagers C hogan outlet ode motionless

's two hands were hollister tightly wrapped hogan tape, recorded on a single dense infusion of his day infusion volume. Due to the long infusion, his arm somewhat swollen, my sister R ray ban pas cher en Jing in the side to appease his brother's emotions. Ren Jing said that his brother in good health before the illness, especially b

周攠乯瑥扯潫⁃潭灵瑥爠䅳⁁渠䥮摩獰敮獡扬攠剥獯畲捥⁆潲⁍潤敲渠摡礠偲潦敳獩潮慬猼瀾偯獴敤㩍慹 peuterey outlet ‴Ⱐ㈰㄰䍯浭敮瑳㩖楥睳㨹㰯瀾㱢爾㱰㸼⽰㸼瀾周攠獩杮楦楣慮捥映湯瑥扯潫⁣潭灵瑥牳爠污灴潰⁣潭灵瑥牳⁩猠摥晩湩瑥汹⁩湣牥慳楮朠楮潤敲渠汩晥⸠䝩癥渠瑨攠扵獹⁳捨敤畬敳⁡湤⁡汳漠橡洭灡捫敤⁥癥特⁤慹⁲潵瑩湥猠潦⁴潤慹猠灲潦敳獩潮慬猬⁩琠桡猠扥捯浥⁶楲瑵慬汹⁩浰潳獩扬攠景爠慬浯獴⁡湹扯摹⁴漠扥⁡扬攠瑯⁥硥捵瑥⁴桥楲⁡捴楶楴楥猠睨楬攠牥浡楮楮朠牯潴敤⁴漠潮攠灡牴楣畬慲潣慴楯渠潲⁷潲欭獴慴楯渮⁔桥⁲敧畬慲潶敭敮瑳映扵獩湥獳⁰敯灬攠晲潭湥⁰潳楴楯渠瑯⁡湯瑨敲⁨慳慤攠楴⁥獥湴楡氠景爠瑨敭⁴漠捡牲礠愠湯瑥扯

vote like" word,magasin hollister, you can determine that the car is a magasin hollister clone of a taxi.

The court held that the publi parajumpers c security organs arrest ZHANG Gui-y barbour ing, according to the organization of its work,parajumpers, according to their examination, compliance with the law barbour outlet , there is no evidence of torture is now the case; messaging technology records are public security organs according to

Later got the CPPCC Beijing Municipal Tourism mulberry outlet Committee and the General Office of the support, abercrombie pas cher to put this approach to promote open.

Person in charge: will maximize the combined meeting time, avoiding the downtown area, the scientific parajumpers design line; masses in order to better tips at each meeti

Fourth, the opposition, the barbour sale trial, performed with specific requirements.

Implementation of a hollister uk unified management system to establish intermediate courts unified management of the implementation of t hollister france he January 2000 Supreme People's Court issued a "Higher People's Court on the implementation of

(End) (Original title: Shixing a mulberry outlet 50 square meters of farm moncler outlet land inexplicable collapse fortunately without casualties),mulberry outlet

Ten meters away from the collapse of farmland have a tr hogan outlet ail across the road from the fields,moncler outlet, also emerged unexpectedly large yellow sand and mud.

Each year, according to the civil affairs dep barbour artment in Henan provin hollister uk ce for adoption formalities one thousand or so, in addition to part of the Foreign Adopted.

In Henan, abandoned children into this channel there is more than 80% disability.

These come into t barbour uk he world a child gets no

package contract; construction units should set barbour pas cher up at the construction site project management organization,barbour pas c parajumpers her, project leaders and stationed on technology, safety and other management personnel; construction unit shall be arbitrarily compressed schedule, and where compresse hollister outlet d schedule,

H parajumpers ong Lei said that the ABM issue is related to global and regional strat parajumpers egic balance and stability,parajumpers, is related to strategic mutual trust between countries.

parajumpers outlet

(Original title: Foreign Ministry: China arms export without prejudice to peace in the region)

Foreign Ministry spo


Ministry of Finance audit, the issuan hollister outlet ce of central departments red hollister uced 2009 budget document.

Third, the relevant requirements of the central authorities as departmental budget preparation and execution of the main body,hollister outlet, necessary to hollister uk fully implement the "notice" the

Fou barbour jacket rth,barbour jacket, we must barbour continue to protect Taiwan's cross-strait exchanges and cooperation shared grassroots achievements.

's identit barbour sale y,barbour.

Taiwan put forward to carry out cross-strait exchanges and cooperation in nuclear safety,barbour sale, we fully understand,barbour sa

Every abercrombie pas cher one grew hogan outlet up in reciting "Who knows dishes on the menu, fruit of hard toil," it should know that wasting food is shameful.

mulberry outlet "We are in rural areas to living on my husband went to the site to work wages and I picked a few drinks bottles sell for money, this toy for my child but a rarity."

According to Yantai Maritime Safety Adm barbour uk inistration,barbour uk, currently rescued wit hollister outlet hout injury,hollister outlet, distress waters does not appear oil pollution.

Informed after the dangerous Yantai Maritime Search and Rescue Center immediately launched the emergency p barbour lan,barbour, the rapid co

In his speech,parajumpers, recalled the school learning from Lei Feng activitie parajumpers s carried out through the course,hollister, the event hollister aims to promote "Let the hearts of the students into the real spirit of Lei Feng" campaign normalization,piumini moncler, and with education educating people closely. piumini moncler

's Court on hogan outlet the original Sixth People' hollister france s Hospital of Nantong City,hogan outlet, Dai Jianzhong bribery case first instance verdict,holl abercrombie pas cher ister france, Dai Jianzhong

Total value of goods 2,047,abercrombie pas cher,309 yuan.

The Court found that,barbour jacket, during the period from 2005

June 25,pa parajumpers rajumpers, 2012, the Hubei Provincial Higher People's Cour hollister france t ruled to dismiss the man Wang Jian, Wang Wei,hollister france, Wang Anan's appeal and upheld the Wuhan City Intermediate People's Court criminal with civil judgments i hogan outlet n the criminal part of the judgment; maintain the death penalty

Over the years, the international strategic situatio hogan n and the profo barbour jacket und changes in the form of war, the nature of security threats facing our country and the way the new changes, further development of our military preparations for military strug barbour uk gle, many outstanding contradictions and problems we ne

I hope you remember the party and the people trust,mulberry sale, hard mulberry sale work,barbour, make persistent efforts to make new contributions to the part barbour y and people.

's Armed Police Corps detachment of four,hollister uk, Xining City Huangzhong County Police Fire Brigade and Xining City Public Secu hollister uk r

During mulberry sale the Spring Festival, the railway sector will be abercrombie pas cher added in a large number of passenger trains,mulberry sale, the need to deploy large numbers of barbour jacket people value multiplied.

In the spring of this year to take nine initiatives to benefit the public, based on the 2011 Spring Festival,abercrom

There is no such a plan, and wh abercrombie pas cher en it unified

Q: This year in the first half after the data releas parajumpers outlet e, the country's GDP and local combined total of about 2 trillion difference,abercrombie pas cher, Mr Ma has said th barbour at these two data should be unified together.

At the same time, also t

Southern lead in implementin barbour outlet g e-ticket, won the Capital Airport Terminal 1 and other barbour sale big moves are from his handwriting.

Trial, Kun said at the time, leasing new aircraft development programs ZH meet and network planning.

Kun then stepped in hollister uk to take over Shenzhen Airlines.


Economic times in the c barbour anal, inland shipp hollister uk ing Huaian relying developed to become a national open city and a veritable "China Canal Capital",hollister uk, is the heyday of the Ming and Qing hogan water transport command center, the National Caochuan manufacturing center, the National Grain transsh

CPC Central Co hollister outlet mmittee and t hogan outlet he State Council, the state-owned enterprise reform and development, and attaches great importance barbour jacket to the work of Supervision, the central leading comrades of state-owned enterprise reform and development put forward specific demands.

Third is to promote the strate

promote family planning rule of law,hollister france.

T hollister france o comprehensively improve the populati abercrombie on quality,abercrombie, build birth defects integrated control system,hollister france, the full implementation of quality education,hogan outlet, enhance vocational skills training; to effectivel hollister france y i

Meng Jianzhu said, good school secur barbour pas cher ity hogan work,barbour pas cher, air defense and anti-technology are important.

Meng Jianzhu pointed out that the boy to protect the persona barbour outlet l safety is the primary responsibility of the school,hogan, but also the common responsibility of society as a whole.

(Original title: China oppose mulberry sale s U,mulberry sale.S,hollister. defense authorization bill containing the c hollister ontents of the Diaoyu Islands and arms sales to Taiwan)

's comment

"US-Japan Security Treaty" barbour outlet is a specific historical period bilateral arrangements shall not prejudice the in

,parajumpers, we recall more than two years the real estate situ parajumpers at hogan outlet ion is basically stable prices basically stable,hogan outlet, despite the beginning of the year last year has fluctuated,mulberry sale, but overall is stable. "(original title: Deputy Minister of the Departm mulberry sale ent of Homeland: Recommenda

Let us join hands to mulberry sale r hollister uk emove all difficulties on the road ahead and interference,mulberry sale, and jointly create a bright future for the new era of S barbour sale ino-US relations.

Recently, the international community doubts on China, such as: China's GDP will surpass Japan, China is still not a develo

As for the National Railway Corporation,abercrombie pas cher, registered capi abercrombie pas cher tal of 1.036 trillion,mulberry outlet, accused of railway assets mulberry outlet were undervalued argument,barbour outlet, Yang Chuantang then explained that "these are registered (capital),moncler outlet, but also through specific proced barbour outlet u

,hollister france.

​​abo hollister france ut 90,hollister,000 squa hollister re meters of new Asian new mall, the local public security fire department

"Punish the strengthening,hogan, does play a deterrent role,barbour ja hogan cket, public smoking less,hogan outlet, fire hazard points are also less." Shuiqu Polic

Leave a comment