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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:40:19+00:00 2026-05-30T16:40:19+00:00

I am building an application which uses Flashdata to display messages to the user

  • 0

I am building an application which uses Flashdata to display messages to the user after certain actions – e.g. “Item Successfully Removed”, etc. I am also using CodeIgniter’s Database Query Caching in order cache certain queries until I invalidate them.

After editing an item, I set a Flashdata message to say “Item Edited”. I then redirect() to the All Items view – which displays the Flashdata message. However, this Flashdata message persists even when I reload the page. The only way to get it to disappear is by emptying out the application/cache directory.

Is there any sensible way of overriding the Caching mechanism to not cache Flashdata? I have found this – http://codeigniter.com/wiki/No_Flash_Cache – but it seems to be a very old solution for CI 1.7. I gave it a go anyway but for some reason CI didn’t want to override the private function _write_cache() – it would override everything else just fine though… (Edit: realised now that (unless someone tells me otherwise) that only affects Output caching – not Database caching)

Thanks in advance!

  • 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-30T16:40:20+00:00Added an answer on May 30, 2026 at 4:40 pm

    You can change the cache mechanism of codeigniter by using cache_override hook. Following lines have been copied from their documentation

    cache_override: Enables you to call your own function instead of the
    _display_cache() function in the output class. This permits you to use your own cache display mechanism.

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

Sidebar

Related Questions

I am building a local intranet web application which uses the current user's AD
I'm building a C# application which uses plug-ins. The application must guarantee to the
I am building an application in C++ which uses sqlite3 as an embedded database.
I’m building a J2EE web application which uses Oracle SSO with an OID back-end
I am building MFC application which uses other c++ library.I am using vs 2008
I'm building an application which uses AutoFac 2 for DI. I've been reading that
I am building a WP7 application which heavily uses RX and I came across
I am building a compartmentalized Flex application which uses <SWFLoader > to load additional
I have been building an application, which uses the LoadOperation's Entities to return an
I'm building an application which uses Ruby+RMagick to composite PNG images onto various JPEG

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.