page loads from cache even after deletions of cache files from cache folder |
Hello
I have implemented page caching in a controller. I have set timeout value for 5 min. Its working fine and the page is loading from cache till timeout. The problem is if i delete the cache file manually from the cache folder before timeout and load the page, still the page is loading from cache. [Expected behavior is the page should load from DB] Please help me out of this situation or any suggestions on why the behavior is so? Thanks in Advance
If you have the website hosted on a shared hosting or on your own server, you should check that a cache solution is not active. It could be Varnish or another.
Also sometimes web browsers store more than one would expect the cache of some parts of the CSS or JavaScript code. To clear this cache and refresh the page you use Shift + F5 in Chrome and Firefox I think it is Ctrl + F5 I hope it helps.
If you have Opcache on in PHP it would do that also, I believe.
11-02-2019, 09:17 AM
(This post was last modified: 11-03-2019, 08:11 AM by vidiyalaakhilkumar_gmail.com.)
[quote='kilishan' pid='369059' dateline='1572663956']
If you have Opcache on in PHP it would do that also, I believe. I am new to codeignitor and PHP caching. I have checked in the phpinfo(); It is showing as "Opcache: Andi Gutmans, Zeev Suraski, Stanislav Malyshev, Dmitry Stogov, Xinchen Hui". I also tried with "php_flag opcache.enable Off" in .htaccess file. still the page is loading from cache. |
Welcome Guest, Not a member yet? Register Sign In |