Not a developer? Go to

Plugin and Theme Directory

MemcachedLocal v0.01

By Hirotaka Ogawa
Posted September 30, 2007, in Rebuilding.


A plugin for speeding up rebuilding templates under FastCGI environment. MemcachedLocal caches the MT internal data to the local memory, which allows you to speed up rebuilding templates especially under FastCGI environment.

Some MT objects have both of internal data and external meta data. $entry->commentcount and $entry->pingcount are typical examples of external meta data for MT::Entry object ($entry), which can be obtained not from 'mtentry' table but from foreign tables such as 'mtcomment', 'mttrackback', and 'mttbping'. It is natural to access the external meta data takes much longer times than to access the internal data.

To amortize such overhead and to be able to access external data as quickly as possible, MT4 has a ''two-level caching mechanism'' for external meta data of MT objects.

For L1-cache, MT4 associates external meta data with an MT object. First time you call $entry->comment_count, MT calculates its value by using foreign tables, and stores it as a property of the object. After that, you can reuse the value without any calcluation. It's good. But, L1-cache has the same lifetime of the target object, which could be shorter than the lifetime of the session. Because, everytime sessions are finished, almost all of MT objects could be destroyed from the local memory, of course with L1-cache. Therefore, we can't reuse L1-cache across multiple sessions or multiple FastCGI requests.

For L2-cache, on the other hand, MT4 stores external meta data to Memcached. External meta data are stored persistently in Memcached, so we can reuse them across multiple sessions. Of course, this feature is avaiable only when you employ Memcached, and L2-cache based on Memcached, which is an external process, is much slower than L1-cache stored inside the Perl runtime object.

To resolve such situations, MemcacheLocal plugin enables the L2-caching feature without using Memcached. Unlike Memcached-based L2-cache, MemcachedLocal stores the external meta data to the local memory and keeps them as long as the application instance lives. So, typically under the FastCGI environment, the application can reuse the external meta data without accessing foreign tables.


Movable Type versions: 4.3



Timothy Appnel on October 2, 2007, 7:51 p.m. Reply

While memory caching will boost performance, this plugin seems to do the same thing as the built-in Data::ObjectDriver::Driver::Cache::RAM class that MT will use by default if memcached is not available.

Hirotaka Ogawa on October 2, 2007, 10:10 p.m. Reply

Memcached caches external meta data of MT objects as well as the contents of objects. For example, MTEntryCommentCount and MTEntryPingCount are typical examples of external meta data for MT::Entry.

This plugin allows you to cache such external meta data to the local memory without employing memcached.

I performed preliminary benchmarking tests by using mt-search.fcgi. You can see how much MemcachedLocal reduces the rendering times.


peterstrong on June 25, 2016, 5:06 a.m. Reply

tests by using mt-search.fcgi

192.168 o 1

192.168 o 1 on June 1, 2017, 10:51 p.m. Reply

Cihaz açma / kapama tuşuna basılarak kapalı duruma getirilir. Cihaz kapalıyken arka kısmında bulunan reset tuşuna(küçük bir tuş) kalem ucu ile basılı tutulur. Reset tuşu basılıyken elimizi reset tuşundan çekmeden modem açma / kapama düğmesine basılarak tekrar açılır. Modemin tüm ışıkları sönüp yanıncaya kadar (yaklaşık 20 Sn.) reset tuşuna basılı bir şekilde durur ve bu işlem olduktan sonra reset tuşundan elimizi çekeriz. Reset tuşundan elimizi çektikten sonra power – lan (10/100) -ve dsl ışıkları sabit oluncaya kadar beklenir. Sonra internet explorer sayfasından adres kısmına yazılarak modemin arayüzüne erişilir. 192.168 l 1 192.168 2 l 192.168 l 0 192.168 10.1

192.168 o 1

192.168 o 1 on June 1, 2017, 10:57 p.m. Reply

Sonra internet explorer sayfasından adres kısmına yazılarak modemin arayüzüne erişilir. 192.168 ll

Merlin John

Merlin John on July 16, 2017, 5:45 p.m. Reply

For speeding up rebuilding templates and things associated with that, the plugin is the best one. I came to know about the plugin from this blog post and I am satisfied with this one. Thank you so much for providing this and hope you will share more informative like this! ipad 2 wholesale


lunami on July 26, 2017, 10:04 p.m. Reply

All these issues are solved currently and we don’t have anything more to discuss. This is why people are doing buy dissertation from online service because it’s a good thing to do. You should be discussing this more.


wahid on October 18, 2017, 7:09 p.m. Reply

Hirotaka Ogawa has given us some great details here. I will tell my colleagues about these details now.


ritariya on July 24, 2018, 12:53 p.m. Reply

Accidentally I have seen the post and I came to know about a new plugin. I have gone through your post but I did not get any informative contents from your post. It seems to be null. Try to add some more uses and benefits of the plugin. What are the features of this plugin? Update your post. best online engagement rings store


frankevans10 on September 25, 2018, 3:03 a.m. Reply

Thank you for helping us to resolve such situations.

Deals in Toronto

Deals in Toronto on December 12, 2018, 8:28 p.m. Reply

Looking for Deals in Toronto? Here you will get latest and updated Online Coupons, Deals, Promo Code so save you money when you buy anything on online.

Gulshan Kumar

Gulshan Kumar on August 5, 2019, 12:35 p.m. Reply

This plugin has been most helpful so far. Keep up the good work!

Gulshan Kumar

Gulshan Kumar on August 5, 2019, 12:35 p.m. Reply

This plugin has been most helpful so far. Keep up the good work!

Gulshan Kumar

Gulshan Kumar on August 5, 2019, 12:36 p.m. Reply



fakro on August 20, 2019, 6:25 a.m. Reply


fakro on August 20, 2019, 6:35 a.m. Reply

En iyi çatı merdiveni ve en ucuz çatı merdiveni modeller.

Emma Davis

Emma Davis on September 24, 2019, 12:28 p.m. Reply

Facing problems in JioFi login?

Simply open any browser and enter http://jiofi.local.html/ and then simply click on login button and use administrator as username and password and this way you can simply login to JioFi.Local.html/.


alex on October 3, 2019, 1:54 p.m. Reply

Play Clash Royale PC, brand new mobile eSports masterpiece that was release globally on 2016, It is for free on your computer! No more waiting around.

Cassandra D. Everhart

Cassandra D. Everhart on October 28, 2019, 8:49 a.m. Reply

I have learn a few just right stuff here. click here

Leave a Comment