• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Issue File modification visible in the browser only after ~50 seconds of waiting

Ludo

New Pleskian
Server operating system version
CentOS 7.9.2009
Plesk version and microupdate number
18.0.57 #5
Hi All,

No nginx cache or other cache system !

I have an index.php:
<?php
echo "test0";
exit();

I change it and save (from FTP or FILES in plesk):
<?php
echo "test1";
exit();

The modification is visible after ~50s without any action (just refresh browser). Meanwhile, if I edit this file, the change is visible but not in a browser.

An idea ?


Best regards,
 
Hi,

Yes, opcache for PHP 7.3 was a problem...
opcache is enabled on PHP 8.1 and I don't have this problem


Thanks a lot
 
The problem is only half solved because it doesn't work for an image (opcache off, checked in phpinfo()).

Example, I replace an image named "x.jpg" and in brower i add x.jpg?v=current_time to force reload.
Even when doing ctrl+F5, the image takes a few seconds to change.

Working on PHP 8.1.

An idea ?
 
Back
Top