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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:26:09+00:00 2026-05-14T05:26:09+00:00

For example on a high traffic web server. To reduce problems when switching a

  • 0

For example on a high traffic web server.

To reduce problems when switching a file I usually rename the old file out and then rename in the new file.

I was told some time ago that renaming a file does not change the ‘inode data’ so that processes reading the file can keep doing so without glitches. And, of course, rather than copying in the new file it is faster and safer to rename a temp copy.

Is this still best practice and if not what do 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-14T05:26:09+00:00Added an answer on May 14, 2026 at 5:26 am

    Assuming that you use Apache http-server.

    Apache normally uses the kernel function sendfile to send static files, that means that it is up to the kernel to cache the file contents and keep track of when it changes.

    You should create the new file and then replace the old file with the new file, e.g.

    mv newfile oldfile

    Then the contents of the new file will be served instead of the old file. Note that any cache settings enabled on the HTTP level may affect whether browsers and proxies deliver the old file or the new file.

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

Sidebar

Related Questions

If I have a high-end server, for example with 1T memory and 8x4core CPU...
I'm implementing a high traffic client web application that uses a lot of REST
For a high traffic web site we are planning to scale up to use
I have a high-traffic site that records web hits in a table, Hits. There's
I help develop a relatively high traffic web application that uses ASP.NET WebForms. Although
How good are event gateways at handling high loads of volume? For example 2k-20k
Example: copy in one tmux pane (via vim), then switch to another pane (running
im building a high traffic asp.net webforms site. I have componentized all the urls
Have/Want List Matching Algorithm I am implementing an item trading system on a high-traffic
Is it good to build a high traffic sites using CakePHP? I am using

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.