LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 04-09-2009, 01:25 AM   #1
surisourabh
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
Unhappy Clearing the Cache.


Hello All.

I am currently stuck with an clearing cache issue.

I have been saving an XML file wherein I shall be reading data, if and only if the XML IS PRESENT ON HARDDRIVE. If same is not present, the code shall generate first and next time it shall simply read and not jump into writing part again and again.

The issue that I am facing is, I am deleting the file manually going to that location, and checking whether it is reading the data, upon investigation, I found that IT IS REALLY READING THE DATA although the file is deleted.

I suspected that there may be some cache issue from where it is picking values, hence it fired the command

"sync; echo 3 > /proc/sys/vm/drop_caches"

but it is still doing the same pattern. Could you please help me out ??..
 
Old 04-09-2009, 05:54 PM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by surisourabh View Post
If same is not present, the code shall generate[...]
which code?
what kind of code?
 
Old 04-14-2009, 05:08 AM   #3
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,266

Rep: Reputation: 99
Lightbulb

Quote:
Originally Posted by surisourabh View Post
Hello All.

I am currently stuck with an clearing cache issue.

See this http://www.linuxquestions.org/questi...memory-700774/

you might find it useful.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clearing cache memory paragkalra Linux - Newbie 3 12-02-2008 04:22 AM
clearing CD cache grayFalcon Programming 1 09-21-2006 04:55 PM
clearing cache, web cache on linux varunbihani Linux - General 2 12-08-2005 12:02 PM
DNS cache clearing n.antonio Linux - Software 0 05-11-2003 08:44 PM
clearing cache waxiem Linux - General 1 03-02-2003 09:42 AM


All times are GMT -5. The time now is 05:16 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration