Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7527139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:02:23+00:00 2026-05-30T04:02:23+00:00

As a feature on my website I have micro-posting with the ability for other

  • 0

As a feature on my website I have micro-posting with the ability for other users to reply with comments. When a user enters their account area they can view their posts and see comments too. I’m currently cleaning up after completion of this project and notice that when a user enters their account area my logs show the following: full log: here

I’m concerned about:

1) The part of logs where it shows a users photo being loaded several times. I’m guessing this is where the same user has left several comments on a few posts on another users or their own profile. It’s loading the same photo over and over again. Shouldn’t this just be done once then some how used again to load the photo each time it comes up again? or is it ok to have that same photo loaded again and again?

2) I noticed some places in the logs that show this:

CACHE (0.0ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` =  LIMIT 1
        [9e77936f78cd46e332128ec31ccc5964] [127.0.0.1]   CACHE (0.0ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` =  LIMIT 1
        [9e77936f78cd46e332128ec31ccc5964] [127.0.0.1]   CACHE (0.0ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` =  LIMIT 1

IT looks like it’s searching for nothing. Is this normal? If not then any idea why it could be happening? I would like to track down the issue and stop it. Other than this my site seems to be working flawlessly but I’m not sure if that’s the same story behind the scenes.

3) Is there anything in my logs that I should be looking out for? Any bad things to spot?

All advice appreciated

Kind regards

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T04:02:25+00:00Added an answer on May 30, 2026 at 4:02 am

    1) I’m thinking it’s OK to load the same photo more than once on a single page – the issue only comes up when a single user has posted multiple comments that load in a given area. If your pagination is 20 comments per page then it will always load 20 pictures if each post is by a different user; even in the most extreme case of 2 posters putting up 10 comments each, caching would only prevent 18 database queries – which I strongly doubt represents a noticeable performance improvement.

    2) My guess is that there’s a query that’s looking for a user with the ID of nil. To track that down, I’d narrow the misfiring query down to a specific method, then sprinkle in a few puts commands around the queries to see what’s actually being looked up. Maybe even a raise 'searching for nil id' unless id here or there.

    3) If your app seems to be running OK, then there’s nothing specific in the logs to hunt for. Make sure you’ve got good unit test coverage and good feature test coverage (I like Cucumber for this kind of testing) and that should help ensure your app stability. The only time you should need to refer to your logs is if your tests are all passing but you still see something in the app behaving contrary to expectations – then you sift through the log to see if you can figure out why the app is misbehaving. Once you’ve got it, fix the bug and write a new test to make sure that you don’t accidentally regress the fix later.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A prospective client wants to have a calendar feature on their website. They want
I have a group feature on my website that allows 1 user to put
I like to have a feature in my website such as If a user
I'm using jQuery. I have website feature that does an ajax search and returns
HI, I have implemented a Bookmark feature in my website, but when I click
I have an ASP.Net website which has a remember me feature for Login page.
I'm about to implement a feature on my website that recommends content to users
my website has a log in by open id feature. When a user logs
I just implemented a remember me feature for a user login on a website.
I have a website that has members. I want to create a feature that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.