PHP File cache

Started by trex2002ro, August 25, 2022, 07:29:50 PM

Previous topic - Next topic

trex2002ro

Hello

I am an newbie and i want to learn php.

I have CWP 7 installed with PHP 8.1.

I am trying to make an php script that connects to sql...this is not really important.
The problem that i have is this:

Every time i edit an php file and save it...it will not refresh on my browser. After about 60-70 seconds...it will refresh.
This is verry anoying because i don't really have good skills in php and most of the work i do is trial and error.

Can someone explain to me why this is happening and what can i do to refreh php site instant?

html file does not have this problem.

Thank you

LexBart

#1
I have the same problem. Did you manage to solve it?

Update

I guess disabling the cache should help.
/opt/alt/php-fpm74/usr/php/php.d/opcache.ini

overseer

You can disable opcache in your relevant php.ini for your version of php:

opcache.enable = 0

Or you can selectivel set opcache_reset() at head of your php script.