Welcome Guest, Not a member yet? Register   Sign In
page loads from cache even after deletions of cache files from cache folder
#1

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
Reply
#2

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.
Reply
#3

If you have Opcache on in PHP it would do that also, I believe.
Reply
#4

(11-01-2019, 08:05 PM)kilishan Wrote: If you have Opcache on in PHP it would do that also, I believe.

Pretty sure Opcache only stores precompiled script bytecode and not output.
Reply
#5
Sad 
(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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB