How often do we think about our http sessions implementation? I mean, do you know, how your currently used sessions-related code will behave when sessions number in your database will grow up to millions (or, even, hundreds of millions) of records? This is one of the things we do not think about. But if you’ll think about it, you’ll notice, that 99% of your session-related operations are read-only and 99% of your sessions writes are not needed. Almost all your sessions table records have the same information: session_id and serialized empty session in the data field.

Looking at this sessions-related situation we have created really simple (and, at the same time, really useful for large Rails projects) plugin, which replaces ActiveRecord-based session store and makes sessions much more effective. Below you can find some information about implementation details and decisions we’ve made in this plugin, but if you just want to try it, then check out our project site.

(more…)

As a part of my wife’s work on wp-based site, I have translated Contact Form Wordpress plugin to russian.

WP-ContactForm is a simple drop in way for users to get in touch with you. Its easy for any WordPress user to add this functionality to their site. Just upload two files and change a few options in your admin panel and you’re set.

Russian .po and compiled .mo files can be found here. Installation procedure is really simple: upload .mo file to /wp-content/plugins/wp-contactform/ directory on your server.

Today I have setup Polyglot plugin on this site and now I’m able to create posts on different languages. Because I know only 3 languages (Russian, Ukrainian and, partially, English :-) ), all of my future posts will be translated to them (at least, to RU and EN).