Prevent page caching on a development server
I do a fair bit of PHP coding on my local machine here.
One of the most irritating aspects of that is when I change a bit of coding and run the browser, the modification fails to appear, as the browser shows the old cached version. This is particularly irritating if the code takes a length of time to run.
There is a very simple and effective fix.
Open php.ini and change the line opcache.enable=1 to opcache.enable=0
Problem solved.
I just wish I had found that years ago!
Comments
Prevent page caching on a development server — No Comments
HTML tags allowed in your comment: <a target="" href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <img src="" height="" width="" alt="" title=""> <table border="" style=""> <iframe frameborder="" allowfullscreen="" src="" width="" height=""> <div class=""> <tbody style=""> <tr style=""> <td style=""> <sub> <sup> <pre lang="" line=""> <ul style=""> <ol style=""> <li style=""> <span class="" style=""> <noindex>