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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:23:43+00:00 2026-06-12T21:23:43+00:00

I was reading about caching mechanism that Yii implements and possible other frameworks/techniques/databases as

  • 0

I was reading about caching mechanism that Yii implements and possible other frameworks/techniques/databases as well. If I got that right, there’s a step that you have to specify a condition to expire the cache. If you have a user row with a timestamp field, you could use this timestamp to verify it’s (the row) consistency. If you have a log table with non erasable/updatable rows, you could use count(*) to make sure that you have an up to date cached result of that query/table.

Now, to my question:

Imagine that I have 13 tables. Is it useful to create another table (CacheTable) that has only one column of timestamp type and store 13 rows, each row telling me when was the last time that one of the other tables was updated/deleted/inserted and use this CacheTable to verify the expiring condition of all my cached queries?

  • 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-12T21:23:44+00:00Added an answer on June 12, 2026 at 9:23 pm

    That’s a good solution if you plan to create triggers to update the CacheTable, you don’t want to do the updates in your code as it will become hard to maintain later.

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

Sidebar

Related Questions

I have been reading a bit about caching in c# 3.5. Got a bit
I've been reading about problems people are having with browsers caching an old version
Reading about Delphi's Exit statement (see here for instance), I cannot ignore that writing
When reading about pipes in Advanced Programming in the UNIX Environment, I noticed that
I've been reading that Full fences prevents any kind of instruction reordering or caching
I am reading about HHT caching, found a website article here which explains some
Reading about Http Post on Wikipedia it states that This is a format for
I've been reading about Skip Lists lately. I have a web application that executes
after reading about sequence points, I learned that i = ++i is undefined. So
While reading about memmove I read that it can handle MEMORY OVERLAPS but I

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.