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 8930211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:50:10+00:00 2026-06-15T08:50:10+00:00

My application allows registered users to post stuff. On the top bar, like many

  • 0

My application allows registered users to post stuff. On the top bar, like many social apps, when logged in one can see their avatar etc.

My issue is that the user-specific content in the header gets cached when using CodeIgniter’s output cache.

This is because first I load user-specific logic via a MY_Controller, which is then extended by all other controllers.

When I place

$this->output->cache(MINUTES);

in the controller that loads my home page, it also ends up caching the avatar and name of the user that generated that cached page.

Does anyone have a suggestion on what would be the best way to selectively cache only the public content? Glad to post more code if needed.

  • 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-06-15T08:50:11+00:00Added an answer on June 15, 2026 at 8:50 am

    I’m sure someone will correct me if I’m wrong but I believe codeigniter caching only allows the caching of full pages. There are some additional libraries which enable partial page caching, check out phil sturgeons effort here:
    http://getsparks.org/packages/cache/show

    My personal approach is to not bother with page caching and just use database caching which is more selective – but if you want/need page caching then I think the above is the only way to go

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

Sidebar

Related Questions

In an application, that allows registered users to create pages which can be edited
I want to create a web application that allows users to sign up, register
My application allows users to save data to a sqlite file. To ensure a
My application allows users to upload an image with embedded captions. These captions are
My fairly basic application allows users to upload avatars. The application is deployed to
My new MVC3 web application allows users to store some information about themselves, and
I have a really simple Rails application that allows users to register their attendance
I have a web application written in php5. The application allows users to register
I am developing a SIP based application. In general if one registered user of
I have a web application that registered users use. These users have good email

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.