Updating files not taking effect

jadayash

Registered
Oct 26, 2020
3
0
1
Lebanon
cPanel Access Level
Root Administrator
Hello

I'am facing an issue from about 2 weeks, on about 10 cpanel servers i work on.

When i modify a php script using File Manager or even ftp, i should refresh several time to take effect, even if i delete the file, it still execute and after several refresh or i added a parameter to the url, it gives 404.

I know this may hapen with html or any static file, but is not normal to be on php files

Is anybody facing this issue?
 

cPanelAaronH

Well-Known Member
Staff member
Dec 31, 2014
70
19
133
Houston Texas
cPanel Access Level
Root Administrator
Hello,

We have not had any reports of users experiencing this type of issue. I also tested this on my server editing a PHP file and saw the changes take effect immediately. Are you running any type of caching application such as Varnish?
 
  • Like
Reactions: jadayash

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,519
1,027
313
cPanel Access Level
Root Administrator
I also haven't seen this behavior on my end, and I just tested this with one of my personal sites by adjusting the PHP. After a refresh, using a browser where caching is disabled, the page changed instantly for me.

Do you see the same behavior if you make the change, and then open a new private/incognito window? Private browsing changes how cache gets handled, so if you don't see the behavior there it seems like local caching may be to blame.