Permalink
Browse files

disable sessions

  • Loading branch information...
1 parent 1b0c744 commit 22efe6fa34995777b342161b5df45ad82ef0fa19 @stefl committed Jun 17, 2012
Showing with 2 additions and 4 deletions.
  1. +0 −2 app/app.rb
  2. +2 −2 app/controllers/page.rb
View
@@ -3,8 +3,6 @@ class YeBay < Padrino::Application
register Padrino::Mailer
register Padrino::Helpers
- enable :sessions
-
set :cache, Padrino::Cache::Store::Memcache.new(::Dalli::Client.new())
##
View
@@ -2,8 +2,8 @@
require 'json'
YeBay.controllers :page do
- get :index, :map => "/" do
- cache_control :public, :max_age => 300
+ get :index, :map => "/", :cache => true do
+ expires_in 300
@items = []
json = ::JSON.parse(open("http://myshakespeare.worldshakespearefestival.org.uk/api/?dateRange=10-06-2012,17-06-2012").read)
json.keys.each do |key|

0 comments on commit 22efe6f

Please sign in to comment.