Don't create sessions for API calls.

This commit is contained in:
Tom Hughes 2007-08-14 13:59:07 +00:00
parent 8dfecbfbb2
commit e70d94c54a
9 changed files with 10 additions and 1 deletions

View file

@ -1,6 +1,7 @@
class AmfController < ApplicationController
require 'stringio'
session :off
before_filter :check_availability
# to log:

View file

@ -1,5 +1,6 @@
class ApiController < ApplicationController
session :off
after_filter :compress_output
#COUNT is the number of map requests to allow before exiting and starting a new process

View file

@ -1,6 +1,7 @@
class NodeController < ApplicationController
require 'xml/libxml'
session :off
before_filter :authorize, :only => [:create, :update, :delete]
before_filter :check_availability, :only => [:create, :update, :delete]
after_filter :compress_output

View file

@ -1,6 +1,7 @@
class OldNodeController < ApplicationController
require 'xml/libxml'
session :off
after_filter :compress_output
def history

View file

@ -1,6 +1,7 @@
class OldSegmentController < ApplicationController
require 'xml/libxml'
session :off
after_filter :compress_output
def history

View file

@ -1,6 +1,7 @@
class OldWayController < ApplicationController
require 'xml/libxml'
session :off
after_filter :compress_output
def history

View file

@ -1,6 +1,7 @@
class SegmentController < ApplicationController
require 'xml/libxml'
session :off
before_filter :authorize, :only => [:create, :update, :delete]
before_filter :check_availability, :only => [:create, :update, :delete]
after_filter :compress_output

View file

@ -1,5 +1,6 @@
class SwfController < ApplicationController
before_filter :check_availability
session :off
before_filter :check_availability
# to log:
# RAILS_DEFAULT_LOGGER.error("Args: #{args[0]}, #{args[1]}, #{args[2]}, #{args[3]}")

View file

@ -1,6 +1,7 @@
class WayController < ApplicationController
require 'xml/libxml'
session :off
before_filter :authorize, :only => [:create, :update, :delete]
before_filter :check_availability, :only => [:create, :update, :delete]
after_filter :compress_output