[ckan-dev] cache_dir

Marco Combetto marcomb at hotmail.com
Mon Feb 9 10:47:42 UTC 2015


Thanks.I did it, and I confirm it works!

Marco Combetto
marcomb at hotmail.com
Mobile: +39 3316329971
www.linkedin.com/in/marcomb 




From: dex at lucadex.it
Date: Mon, 9 Feb 2015 10:40:16 +0100
To: ckan-dev at lists.okfn.org
Subject: Re: [ckan-dev] cache_dir

Hi Marco,according to the Beaker docs you can delete old cache files without any problem. See http://beaker.readthedocs.org/en/latest/sessions.html#deleting “Removing Expired/Old Sessions”
Ciao,L.

Il giorno 04/feb/2015, alle ore 13:58, Marco Combetto <marcomb at hotmail.com> ha scritto:Thanks a lot, we will think about, but I don't understand why I should keep these sessions forever even if in another place
Could I delete them after a while (eg 1 month)? and without stopping CKAN in the meanwhile?

Thanks!

Marco



> Date: Wed, 4 Feb 2015 11:01:04 +0000
> From: ross at servercode.co.uk
> To: ckan-dev at lists.okfn.org
> Subject: Re: [ckan-dev] cache_dir
> 
> Hi Marco,
> 
> Try the instructions at 
> http://stackoverflow.com/questions/13781023/how-to-configure-ckan-to-store-sessions-somewhere-other-than-disk-e-g-db-or-me 
> they should help.
> 
> Ross
> 
> Marco Combetto wrote:
> > I revamp this old thread about the caching because I just crashed my
> > Production CKAN.
> > Could I get rid of these files periodically? Is there a way?
> >
> > In facts, I just realized today that our CKAN is producing hundreds of
> > thousands of small files on the cache directory (/session in
> > particular), file like this:
> >
> > ./default/sessions/container_file/5/59/5992e9b028454f8684e5d53a0f2a8005.cache
> >
> > Basically the file system crashed because we reached the max number of
> > INode on it.
> >
> > Is there a setting on the PRODUCTION.INi to avoid this caching?
> > Is there any issue related if I setup a cron job that delete these files
> > periodically
> >
> > Thanks a lot for any suggestions
> >
> > Marco Combetto
> > marcomb at hotmail.com <mailto:marcomb at hotmail.com>
> > Mobile: +39 3316329971
> > www.*linkedin*.com/in/*marco*mb
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> > From: y2kristi at hotmail.com
> > To: ckan-dev at lists.okfn.org
> > Date: Fri, 14 Mar 2014 05:11:13 -0400
> > Subject: Re: [ckan-dev] cache_dir
> >
> > thanks so much!
> >
> > > Date: Fri, 14 Mar 2014 09:09:45 +0000
> > > From: david.raznick at okfn.org
> > > To: ckan-dev at lists.okfn.org
> > > Subject: Re: [ckan-dev] cache_dir
> > >
> > > Hello
> > >
> > > The normal data is not stored on disk first and goes straight in the
> > database.
> > >
> > > David
> > >
> > > On 14 March 2014 09:04, kristi powell <y2kristi at hotmail.com> wrote:
> > > > oh I understand. I'm asking now if a copy of the data that will be
> > saved to Postgres is saved anywhere else on the file system before being
> > persisted.
> > > >
> > > >> On Mar 14, 2014, at 5:00 AM, "David Raznick"
> > <david.raznick at okfn.org> wrote:
> > > >>
> > > >> The data saved there is never persisted to the database, but is saved
> > > >> locally just for a single request.
> > > >>
> > > >>> On 14 March 2014 08:55, kristi powell <y2kristi at hotmail.com> wrote:
> > > >>> but is the data actually saved locally before it's persisted to
> > the db anywhere?
> > > >>>
> > > >>>> On Mar 14, 2014, at 4:41 AM, "David Raznick"
> > <david.raznick at okfn.org> wrote:
> > > >>>>
> > > >>>> Hello
> > > >>>>
> > > >>>> The cache directory or the session directory is only used for stuff
> > > >>>> that is not saved in the database. It is always safe to remove. It
> > > >>>> is only used for very temporary data. CKAN only uses it infact to
> > > >>>> store the little popup messages that come up after you are
> > redirected
> > > >>>> to a new page.
> > > >>>>
> > > >>>> David
> > > >>>>
> > > >>>>> On 14 March 2014 07:36, kristi powell <y2kristi at hotmail.com> wrote:
> > > >>>>> can anyone explain this setting to me please?
> > > >>>>>
> > > >>>>> thanks.
> > > >>>>>
> > > >>>>>> On Mar 13, 2014, at 3:45 AM, "kristi powell"
> > <y2kristi at hotmail.com> wrote:
> > > >>>>>>
> > > >>>>>> hello...
> > > >>>>>>
> > > >>>>>> is there anything written into cache before the data is saved
> > to the database? I see a setting called "cache_dir" is that just session
> > information or actual data? is there any data saved locally before it's
> > persisted?
> > > >>>>>>
> > > >>>>>> thanks
> > > >>>>>>
> > > >>>>>> kristie



-- Luca De Santis email: dex at lucadex.itweb: http://www.lucadex.it




_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20150209/7d3c3dc2/attachment-0003.html>


More information about the ckan-dev mailing list