🍁 Autumn Sale — Up to 70% discount for hosting and domains
activate now
Frequently Asked Questions • Dev

Changes made to the website or a PHP script are not visible when accessed through the browser. What is the cause?

In some situations, any changes made to the website will not be visible when accessed through a browser. Find out what the problem could be.

1
Views 1162Updated 1 anPublished on 24/08/2018by Sebastian S.

This problem is usually caused by the PHP accelerator OPcache. OPcache improves PHP performance by storing the bytecode (compiled PHP code) in memory, thereby eliminating the need to load and parse PHP scripts for each request.

Changes made to PHP scripts are refreshed in memory according to the value of the directive opcache.revalidate_freq. For this reason, there may be delays until the changes become visible on the site.

How to disable OPcache:

OPcache can be disabled by following these steps:

  1. Access cPanel.
  2. Navigate to the Select PHP Version section.
  3. Select Switch to PHP Options.
  4. Set the directive opcache.enable to Off.

For additional information, please consult the available tutorials:

Note: OPcache significantly improves the execution speed of PHP scripts, and it is recommended to be disabled only during the development of the website or application.

Other possible reasons why the changes are not visible:

  • Cache in browser: The browser may keep an outdated version of the page. Try clearing the cache or reloading the page using the key combination Ctrl + F5.
  • Application cache: Most CMSs, such as WordPress, Joomla, or PrestaShop, include their own caching mechanisms.
    • Check the application's administration settings to clear the cache.
    • Make sure that caching mechanisms are not active during development.

Similar Articles

Views 1,162
Updated 1 year ago

In some situations, any changes made to the website will not be visible when accessed through a browser. Find out what the problem could be.

Views 1,771
Updated 2 years ago

Send emails from PHP scripts using SMTP authentication to bypass SPAM filters. This is an effective solution and is permitted on most hosting services.

Views 921
Updated 7 years ago

Learn how to set a PHP cron job and the paths to the PHP interpreter on Webuzo, cPanel/WHM, and Plesk. Find quick and effective solutions for VPS.