# Data caching

**URL:** <https://forum.kirupa.com/t/data-caching/319276>\
**Category:** programming\
**Created:** [February 15, 2011, 7:59am UTC](https://forum.kirupa.com/t/data-caching/319276 "2011-02-15T07:59:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerome\_chevreau](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jerome\_chevreau](https://forum.kirupa.com/u/jerome_chevreau)\
**Post date:** [February 15, 2011, 7:59am UTC](https://forum.kirupa.com/t/data-caching/319276/1 "2011-02-15T07:59:07Z")

</div>

Hi there,

I am caching my data into a file. Everytime there is an addititional entry, it goes and get written into that file.

I wanted to see if it was the best way to cache data, as it will avoid lots of queries into a table that will be hold thousands of data.

Does anybody can help in that situation??

PS: what is the best solution to update that cache file?  
eg. delete line and append new into file??

Thanks for any help,

Regards
