GithubHelp home page GithubHelp logo

Comments (6)

wfwalker avatar wfwalker commented on August 19, 2024

In Production

Started GET "/locations.json" for 127.0.0.1 at 2012-10-29 14:52:05 -0700
Processing by LocationsController#index as JSON
VC: Not logged in, no timeout check
Read fragment views/localhost:3000/locations.json (0.3ms)
Rendered text template within layouts/responsive (0.0ms)
Completed 200 OK in 46ms (ActiveRecord: 0.0ms)

from birdwalker3.

wfwalker avatar wfwalker commented on August 19, 2024

In Development

Started GET "/locations.json" for 127.0.0.1 at 2012-10-29 14:53:22 -0700
Connecting to database specified by database.yml
Processing by LocationsController#index as JSON
VC: Not logged in, no timeout check
Location Load (12.4ms) SELECT DISTINCT locations.* from locations, counties, states where locations.county_id=counties.id AND counties.state_id = states.id ORDER BY states.name, locations.name
Location Load (4.6ms) select locations.*, count(distinct trips.id) as trip_count from locations,sightings,trips where locations.id=sightings.location_id and sightings.trip_id=trips.id and datediff(now(), trips.date) < 40 group by locations.id order by trip_count desc limit 5
Completed 200 OK in 146ms (Views: 81.2ms | ActiveRecord: 18.4ms)

from birdwalker3.

wfwalker avatar wfwalker commented on August 19, 2024

the symptom can be fixed by changing config.action_controller.perform_caching from true to false in config/environments/production.rb, but then we get no benefit from the caching, so that feels wrong.

from birdwalker3.

wfwalker avatar wfwalker commented on August 19, 2024

could be related to this:
http://railsforum.com/viewtopic.php?id=25383

from birdwalker3.

wfwalker avatar wfwalker commented on August 19, 2024

fixed in 0982e39
deployed.

from birdwalker3.

wfwalker avatar wfwalker commented on August 19, 2024

thanks to @nickdesaulniers, see also
http://garrickvanburen.com/archive/rails-page-caching-with-multiple-formats-in-respond_to/

from birdwalker3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.