Welcome Guest, Not a member yet? Register   Sign In
Web Page Caching
#1

(This post was last modified: 08-14-2017, 03:02 AM by bishal.)

Hello Everyone.
                    I'm trying to cache the html output, I tried this as mentioned in CI document by keeping the code '$this->output->cache(100);' on controller. This do created the cache file under application/cache directory with random file name as expected but now I need this file to be deleted whenever I alter the database i.e (insert, update, delete). 
                   How can I achieve this. I manually tried to delete the file by writing this code ($this->output->delete_cache()), as mentioned in document this should delete the cache file for the currently requested url but this didn't work. I created the cache file on default controller.
Reply


Messages In This Thread
Web Page Caching - by bishal - 08-14-2017, 12:48 AM
RE: Web Page Caching - by InsiteFX - 08-14-2017, 04:15 AM
RE: Web Page Caching - by bishal - 08-15-2017, 05:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB