Finally switched to Mephisto

Posted by Jonathan

After a long period of painful slowdowns due to Typo's caching I finally switched to Mephisto.

Typo created massive amounts of cached paged for each spammer request and this slowed down the whole machine. I had to manually rm -rf the cache directory every now and then.

The switch to Mephisto should be seemless as I migrated all old URLs with Mephisto's redirect handling:

> tail config/environment.rb

# Typo style article URLs
Mephisto::Routing.redirect '/articles/*' => '/$1'

# Typo pages
Mephisto::Routing.redirect '/pages/*' => '/$1'

# Typo feeds
Mephisto::Routing.redirect '/xml/rss' => '/feed/atom.xml'
Mephisto::Routing.redirect '/xml/rss/feed.xml' => '/feed/atom.xml'
Mephisto::Routing.redirect '/xml/rss/comments/feed.xml' => '/feed/all_comments.xml'
Mephisto::Routing.redirect '/xml/rss20/feed.xml' => '/feed/atom.xml'
Mephisto::Routing.redirect '/xml/rss20/comments/feed.xml' => '/feed/all_comments.xml'
Mephisto::Routing.redirect '/xml/atom/feed.xml' => '/feed/atom.xml'
Mephisto::Routing.redirect '/xml/atom/comments/feed.xml' => '/feed/all_comments.xml'
Mephisto::Routing.redirect '/xml/commentrss/feed.xml' => '/feed/all_comments.xml'

I you experience any problems with the URL handling, please contact me.

Comments

Leave a response