Lightsail: file changes are slow be reflected

0

Hi, if I deploy new changes to the instance (eg via Git) or I make direct changes to files on the instance, it can take up to 30-60 seconds before the changes are actually reflected.

Steps to reproduce:

  1. Login to your instance
  2. Make a change to a file (eg add a new line of text)
  3. Visit that page in your browser - you'll see that the new line of text doesn't show up until 30-60 seconds of repeatedly refreshing

Why is this and how to avoid it? Thanks

Hugo B
asked 6 months ago145 views
1 Answer
0

Hello.

Is caching enabled on your web server?
With Apache, if you use something like "mod_cache.so", it will be cached.
https://httpd.apache.org/docs/2.4/en/mod/mod_cache.html

Also, if you are using php, please check the settings in "php.ini".
If the setting value of "opcache.revalidate_freq" in "php.ini" is a large number, it will take time to update.
https://www.php.net/manual/en/opcache.configuration.php

profile picture
EXPERT
answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions