-
Website
http://blog.kovyrin.net -
Original page
http://blog.kovyrin.net/2008/02/06/fastsessions-rails-plugin-released/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
for you health
3 comments · 1 points
-
jamiew
1 comment · 6 points
-
qu1j0t3
1 comment · 1 points
-
TomK32
1 comment · 1 points
-
Scoundrel
9 comments · 1 points
-
-
Popular Threads
Thanks.
@@connection.execute "DELETE FROM #{table_name} WHERE UNIX_TIMESTAMP(updated_at)
Note the UNIX_TIMESTAMP around (updated_at) in first part of the comment
[application.rb]
# turn off sessions if this is a request from a robot
session :off, :if => proc { |request| request.user_agentuser_agent =~ /\b(Baidu|Gigabot|Googlebot|libwww-perl|lwp-trivial|msnbot|SiteUptime|Slurp|WordPress|ZIBB|ZyBorg)\b/i }
After that application don't get back alive, until I delete session record.
Unfortunately, my MySQL database was not compiled with InnoDB.