• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clear Page Cache does not work.


I am using native CI page cache for my blog. The caching of the page works fine but I want to be able to delete cache file for the page I have edited.

I found a nice function for this here: http://codeigniter.com/wiki/Clear_Page_Cache/
But sadly I cannot get it to work with the below code:


The URL to the page I want to delete cache for is:


What is missing here, why can´t I get the function to remove the file?
Is there any other ways to clear the PAGE cache?

Thankful for all help!

Kind Regards,

I am having trouble where the page cache expiration works on my development machine but not production (same code via svn). Its weird my devel box will recreate a cache file every 10 minutes as it should, but prod box timestamp changes every minute on the cache file instead of every 10.


I figured it out.

I was setting the base_URL in my custom config file for production which differs from localhost. So i'm guessing the output class loads prior to my custom config files and it was using the wrong base_url for caching functions.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.