CodeIgniter Forums
view page caching - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17)
+--- Thread: view page caching (/showthread.php?tid=63202)



view page caching - wahsidin - 10-06-2015

how to know ? is that the view page caching is working properly ? ( using , $this->output->cache($n) )


RE: view page caching - sv3tli0 - 10-07-2015

Can you explain your problem, with some Code ?

"Is this working" will get answer really hard..


RE: view page caching - mwhitney - 10-07-2015

Cache the page for a relatively long period of time, then change the view without deleting the cached view on the server. You will probably have to delete the browser's cache to be absolutely sure that the server is still serving a cached view.

Once you've verified that it's serving a cached view, you would most likely want to add some code to delete the cached view when appropriate, unless it's going to be a completely manual process.


RE: view page caching - cartalot - 10-07-2015

on your server look in the folder:
application/cache

if its working you will see files in there with long random names, and you can see the date time for when they were created.
you can also delete all the cache files in the folder, click on your test page, and you should see a new cache file appear in the cache folder with the current date time.