title: Codeigniter web page caching
body: <p>How can i cache a particular part of the web page, I know how CI caching mechanism works also i am aware of Partial Caching.</p>
  
  <p>Assume that we have a page with some dynamic data associated with. If i used caching then i cannot get the actual data on page refresh.</p>
  
  <p>How can i override this problem ?</p>
  
  <p>I have one idea in my mind, While inserting the data just keep another field, lets say <code>MD5_CONTENTS</code> which will store the MD5 hash of the contents ( Normally form fields ). And next time on update i can compare the MD5 strings to determine changes. If changes are found then delete the cache file.</p>
  
  <p>I dont know this is gonna work or not, But its littlebit hard for my current implementation.</p>
  
  <p>What is the best method to achieve Partial Caching ?</p>
  
  <p>Thanks</p>