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

  • SEARCH
  • Home
  • 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 616145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:17:43+00:00 2026-05-13T18:17:43+00:00

I would like to utilize caching on a couple pages: individual blog pages index.php

  • 0

I would like to utilize caching on a couple pages:

  1. individual blog pages
  2. index.php

However, after devising my system, I realized that the headers of my pages change according to state very slightly (aka, it says something like “Hello, johnnie@example.com” if you are signed in). I therefore want to make sure that it doesn’t accidentally display the wrong username or email up top.

It’s a shame that such a small thing that I would like to NOT be cached on a page should force me to cache nothing on my site at all.

How can I get around this?

  • 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-13T18:17:43+00:00Added an answer on May 13, 2026 at 6:17 pm

    You’ll want to think about WHY you want to do caching. Caching is an optimisation and as such, should only be done if necessary.

    If you aren’t sure it’s necessary, go back and do some research to make sure. This will involve performance testing on production-grade hardware on your test lab.

    Once you’re sure it is necessary, then you will know how much improvement you need. You can consider caching just PARTS of pages – this will be less efficient on the front-end and caching layer than caching complete pages, but may take more load off the back-end as you will get a higher cache hit rate.

    Consider a page which has a personalised element (say, Hello Johnnie) and a part which is expensive to compute but changes relatively infrequently and is the same for all users – say some stock prices.

    You can cache the stock prices part of the page for (say) 5 minutes and generate the personalised part of the page each time. That way you don’t hit your back end for stock prices and can still show the right page to the right people.

    Most companies find that generating the front-end is quite computationally expensive (sticking HTML together is sadly rather time-consuming) BUT scales very well – this means that you can simply add more tin when it’s not fast enough. On the other hand, back-end servers can do a lot more work, but scale much less well – e.g. databases – you cannot simply add more servers because there are consistency / synchronisation problems to contend with which limit scalability.

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

Sidebar

Related Questions

I would like to utilize classes that inherit the System.Data name space. Specifically, I
I have a couple activities in my app that I would like to utilize
I would like to configure JBoss 4.2.x to utilize the JBoss Web Native Connectors
Would like to know how to hide an div after a set of css3
I am writing a graphics library in C and I would like to utilize
DroidFu and GreenDroid are great open source projects which I would like to utilize
I would like to know how can I query index from asp.net application. I
I have a project which would like to utilize the Google Guava libraries (on
In a swing application, I would like to re-utilize a spawned thread instead of
I would like to utilize the ASP.NET AJAX Page Methods functionality with a user

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.