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

The Archive Base Latest Questions

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

I have a simple site on a shared hosting service and I use basic

  • 0

I have a simple site on a shared hosting service and I use basic PHP output caching (writing HTML output to files). The data of the site does not change often, but when it does then only I make changes, so the site has no update interface, because it does not need one, I simply log in to the phpmyadmin interface and upload the modifications as SQL statements.

This works well, the only problem is the changes do not appear immediately on the site, only when the cache time expires. Is there some way to trigger cache invalidation from mysql, so the caches are cleared when I change data in the database. For example, I could add one more sql line to the update which would somwehow call an external program in the home directory if it’s possible, but is it?

If it’s not then is there some clever way for MYSQL to notify the PHP side about a data update without PHP having to connect to the database (if there is a cached version of the page then it uses that and does not connect to the database, because that is the point).

  • 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:21:00+00:00Added an answer on May 30, 2026 at 4:21 am

    is there some clever way for MYSQL to notify the PHP side about a data update without PHP having to connect to the database

    There is not, and you should not want this.

    You may write a special PHP script on your site which will invalidate the cache, and call it manually each time you update the DB. Or you may store your cache in DB (rather than in files).

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

Sidebar

Related Questions

We have a rather simple site (minimal JS) with plain html and CSS. It
I have a simple view: <%@ Page Title= Language=C# MasterPageFile=~/Views/Shared/Site.Master Inherits=System.Web.Mvc.ViewPage %> <asp:Content ID=Content1
I'm new to php and I have created a simple site using php5. my
Imagine that you have a simple site with only 2 pages: login.aspx and secret.aspx.
I have a relatively simple site that I'm working up for an intranet environment.
I have a simple web site ( http://www.kousenit.com/twitterfollowervalue ) that computes a quantity based
Lets say I have a simple ecommerce site that sells 100 different t-shirt designs.
I have a very simple sinatra site that I'm trying to access via ajax
I have a very simple MVC site that is returning a 404 not found
I want to setup a simple site and I don't have any web development

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.