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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:20:14+00:00 2026-05-27T17:20:14+00:00

I am designing a web application which will be doing three things: 1) store

  • 0

I am designing a web application which will be doing three things:

1) store some data

2) make user available to view these data

3) from time to time add/remove/change some data

Looks pretty simple, but I would like to minimase usage of server resources by avoiding MySQL and PHP. My main goal is to deliver HTML file for user – posts1.html (posts2.html, posts3.html… (where 1,2,3 are numbers of pages of data)).

Normally, I would create posts.php file, which would send query to database, but my data are changing only three-five times a day, so it would be a huge waste.

Instead, I thought about caching these data, what would spare a lot of server resources, but in this situation there would be some of PHP code involved.

My another idea is to create script that would be creating all HTML files after every change in database and then replace the old ones with them. But what if someone requests page that is replacing right now? It may cause errors, user can get the uncompleted file etc.

However, there is one solution – I could store created HTML files in two directories (A and B) and using .htaccess do something like this (pseudocode):

if ( (HOURS)%2 == 0 )
   /postsX.html -> /A/postsX.html
else
   /postsX.html -> /B/postsX.html

It would give me enough time to upgrade all files.

I would love to hear what do you think about it and what would you do?

  • 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-27T17:20:15+00:00Added an answer on May 27, 2026 at 5:20 pm

    If you dont want to use a full blown MySQL server, use SQLite. It’s part of PHP and very lightweight. Then add caching where appropriate. Your other approaches sound like a waste of time to me. Too much effort for too little gain. SQLite and caching is tried and tested.

    Besides, you should not worry about waste of resources unless you are running short on them. Your application doesnt sound like it needs scaling at this point. So build the simplest thing that will work.

    If you have to have that static pages approach, then put all those files into a symlinked folder. Create a script that generates the static pages into a new folder (either via cron or manual trigger) and then changes the symlink from the old folder to the new folder. This way you don’t have to worry about people hitting your site while its generating content.

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

Sidebar

Related Questions

I'm designing a fairly small web application which will run on a Sun application
I am in the process of designing a web application which will have multiple
I am designing a web application using GWT currently, which is also the first
We are designing asp.net web application in wcsf. Web application will be deployed to
We are designing set of web services which will return XML string in response.
I'm currently designing a web application which may be viewed by people in all
I'm about to make a web app which will have a pretty heavy client
I am designing a web application which is a tie in to my iPhone
I'm designing a web application which stores SEO metrics relating to websites. There are
I am in the process of designing a trading application which will use a

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.