Skip to content
This repository has been archived by the owner on Dec 28, 2021. It is now read-only.

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey Roberts committed Jul 7, 2017
2 parents ad09319 + a54d0d3 commit a5560ab
Showing 1 changed file with 24 additions and 18 deletions.
42 changes: 24 additions & 18 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ class App < Sinatra::Base
logger.info "Fetching anime with ID #{params[:id]}..."
logger.info "Options: #{options}" unless options.count == 0

expires 3600, :public, :must_revalidate
last_modified Time.now
etag "anime/#{params[:id]}/#{options}"
# FIXME: Removing caching on search for now. Figure out how to better cache this
# expires 3600, :public, :must_revalidate
# last_modified Time.now
# etag "anime/#{params[:id]}/#{options}"

anime = Railgun::Anime.scrape(params[:id], options)

Expand Down Expand Up @@ -188,9 +189,10 @@ class App < Sinatra::Base
logger.info "Fetching manga with ID #{params[:id]}..."
logger.info "Options: #{options}" unless options.count == 0

expires 3600, :public, :must_revalidate
last_modified Time.now
etag "manga/#{params[:id]}/#{options}"
# FIXME: Removing caching on search for now. Figure out how to better cache this
# expires 3600, :public, :must_revalidate
# last_modified Time.now
# etag "manga/#{params[:id]}/#{options}"

manga = Railgun::Manga.scrape(params[:id], options)

Expand Down Expand Up @@ -323,9 +325,10 @@ class App < Sinatra::Base
logger.info "Fetching anime with ID #{params[:id]}..."
logger.info "Options: #{options}" unless options.count == 0

expires 3600, :public, :must_revalidate
last_modified Time.now
etag "anime/#{params[:id]}/#{options}"
# FIXME: Removing caching on search for now. Figure out how to better cache this
# expires 3600, :public, :must_revalidate
# last_modified Time.now
# etag "anime/#{params[:id]}/#{options}"

anime = Railgun::Anime.scrape(params[:id], options)

Expand Down Expand Up @@ -452,9 +455,10 @@ class App < Sinatra::Base
logger.info "Fetching manga with ID #{params[:id]}..."
logger.info "Options: #{options}" unless options.count == 0

expires 3600, :public, :must_revalidate
last_modified Time.now
etag "manga/#{params[:id]}/#{options}"
# FIXME: Removing caching on search for now. Figure out how to better cache this
# expires 3600, :public, :must_revalidate
# last_modified Time.now
# etag "manga/#{params[:id]}/#{options}"

manga = Railgun::Manga.scrape(params[:id], options)

Expand Down Expand Up @@ -530,9 +534,10 @@ class App < Sinatra::Base

logger.info "Fetching character with ID #{params[:id]}..."

expires 3600, :public, :must_revalidate
last_modified Time.now
etag "character/#{params[:id]}"
# FIXME: Removing caching on search for now. Figure out how to better cache this
# expires 3600, :public, :must_revalidate
# last_modified Time.now
# etag "character/#{params[:id]}"

character = Railgun::Character.scrape(params[:id])

Expand All @@ -552,9 +557,10 @@ class App < Sinatra::Base

logger.info "Fetching person with ID #{params[:id]}..."

expires 3600, :public, :must_revalidate
last_modified Time.now
etag "person/#{params[:id]}"
# FIXME: Removing caching on search for now. Figure out how to better cache this
# expires 3600, :public, :must_revalidate
# last_modified Time.now
# etag "person/#{params[:id]}"

person = Railgun::Person.scrape(params[:id])

Expand Down

0 comments on commit a5560ab

Please sign in to comment.