🌼 Spring Sale — Up to 60% discount for hosting and domains
Frequently Asked QuestionsDev

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 653Updated 1 anPublished on 24/08/2018by Sebastian Szlivka

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

Can I send emails through PHP scripts using SMTP?Frequently Asked Questions /Dev

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

5
by Sebastian Szlivka
Views 1118
Updated 1 year ago
Published on 24/09/2018
I modified the nameservers, how long does it take for my site to be online?Frequently Asked Questions /DNS

The propagation of nameservers can be an unpleasant thing if immediate visibility of the site online is required.

2
by Florin Petran
Views 917
Updated 1 year ago
Published on 09/07/2018
Why isn't my website working?Frequently Asked Questions /Random

Find out the main reasons why your website is not functioning correctly and how to quickly resolve these issues.

2
by Mark Dohi
Views 421
Published on 02/07/2025
What PHP versions are available on Hostico servers?Frequently Asked Questions /Random

Hostico offers all recent PHP versions, including older versions, available on servers. Contact us for custom options on VPS.

1
by Florin Petran
Views 880
Updated 1 year ago
Published on 09/07/2018
by Sebastian Szlivka
Views 965
Updated 1 year ago
Published on 09/07/2018