Need to delete old cache files. (rm -rf ./tmp/*
)
and, change the syntax.
# before
Padrino::Cache::Store::File.new(Padrino.root('tmp', app_name, 'cache')
# after
Padrino::Cache.new(:File, :dir => Padrino.root('tmp', app_name.to_s, 'cache'))
Need to rewrite about the protection in config/apps.rb.
# before
set :protection, true
# after
set :protection, :except => :path_traversal
Need to use =
instead of -
in some cases.
reference
Need to insert app of non-main before main app in config/apps.rb.
Need to fix argument If using incorrect argument.
SampleApp.controllers :cap_alerts do
get :index do
"hello"
end
end
# before
url(:cap_alerts, :index) #=> "/cap_alerts"
url(:cap, :alerts, :index) #=> "/cap_alerts"
url(:cap, :alerts_index) #=> "/cap_alerts"
# after
url(:cap_alerts, :index) #=> "/cap_alerts"
url(:cap, :alerts, :index) #=> UnrecognizedException
url(:cap, :alerts_index) #=> UnrecognizedException
# before
route.name #=> :cap_alerts_index
# after
route.name #=> :"cap_alerts index"
Caching Expiration
Change
expires_in
toexpires
when declaring this option for the cacheor in a
cache
block: