Ruby on Rails plugin for a better cache

May 20th, 2008

The Ruby on Rails caches_page is broken in many ways (to my believes), first of all it has a RACE bug because it does not create the cached filename atomically, and you will end up with 0 byte size cached filename. It also does not create lock files to have other process waiting instead of generating the same pages.

If you have 3 mongrel processes delivering the same non-existing (yet) page, you’ll end up with 3 mongrel processes for the same page. The following plugin does create lock files to have the 2 other waiting for a short amount of time, which should lower your cpu usage on high traffic servers.

Code is available at http://github.com/penso/caches_page_fix/


Tags: , , , , ,

Plugin X509 for Ruby on Rails - Plugin X509 pour Ruby on Rails

May 11th, 2008

Besoin de signer des mails en X509 / SSL avec Ruby on Rails ? Conovae a développé pour Dimelo un plugin il y a quelques mois qui permet de faire cela de manière automatique, notre prestation incluait la mise à disposition du code sous une licence libre. Le projet est désormais disponible sur Github, sous licence BSD. Voir Plugin de signature X509 pour Rails.

Do you need to sign outgoing mails with X509 signature (openssl) with Ruby on Rails ? Our company Conovae developed for Dimelo a plugin which is now released for the mass. It includes testcase and performance test. See X509 signature plugin for Ruby on Rails.


Tags: , , , , ,