October 31, 2018 at 7:41 PM #9468
Caezar De Castro IIKeymaster
There are three things you can do to forcibly disable cache on Windows Server IIS as web server.
Our first option is to deal with the features in IIS called Output Caching. Basically, what this does is the server is having a cache of all the PHP script that previously run by the server. So, our task to disable or rewrite the rule of that feature using that IIS extension.
- From IIS, select the website.
- Open “Output Caching” under the IIS section.
- Click “Add…” from the Actions panel.
- Specify an extension, Check “User-mode caching” and “Kernel-mode caching” and select the “Prevent all caching” options under each section.
- Click OK then Restart the website.
Second is the PHP CGI config.php, which we can disable a PHP extension called WinCache, what we need to do is to comment the line like the following.
Third thing is to edit your web.config file or just navigating into the Output Caching. Using the IIS Manager. Click on the Web Site -> Output Caching click on Edit Feature Settings… uncheck Enable cache and Enable kernel cache. On web.config, add this if a similar code doesn’t exist.
<system.webServer> <caching enabled="true" enableKernelCache="true"> </caching> </system.webServer>
Another thing is if you’re using Google Chrome to view your website is to click F12 and then Go to network and on the top, check DISABLE CACHE. This disables caching on the browser.
But sometimes or I think I could say always, is you have to make sure that the Application Pool used by your running website’s recycling LIMIT REQUEST has a value of 1. By default, it is null or without value and uncheck. What you need to do is to check the limit request toggle and set the value to 1.
You can now check if your PHP is still caching on the server. Take note that this can slows down the website development little as the server will always try to compile and run each script needed everytime a single page is requested from the server. See, Server Admin: Basic Manual for Performance and Security forum for more server administration tips and guides.
You must be logged in to reply to this topic. Login here