This question about Installation of Foswiki, Configuration: Answered

Is it OK to clear the working/tmp directory?

Hello

I wanted to ask the question whether it would be OK to clear (delete) the files in the working/tmp directory? At the moment our copy is looking pretty full. I've read that the working directory holds files for extensions such as mailer contrib, but I'm assuming that the working/tmp is just for temp files - however, would rather ask before I break something. : )

-- WilliamMorgan - 02 Jun 2014

No. working/tmp should only (or mostly) contain cgisess_... files, one for each end user session, guests and logged in alike. If you clean out this directory everyone would have to login again. It won't actually damage anything but it could be disruptive to users.

If there are other files there beyond the cgisess_* files it might be best to determine what they are and check for other plugin configurations.

Check your bin/configure Security and Authentication section, Sessions Tab. There is a setting {Sessions}{ExpireAfter} that controls the session lifetime. If that is a positive number, Foswiki will clean these up automatically when that lifetime is exceeded. If it's negative, the sessions will accumulate forever unless you have a cron job to run the tick_foswiki script to clean them up.

-- GeorgeClark - 02 Jun 2014

Thanks GeorgeClark.

-- WilliamMorgan - 02 Jun 2014

Sorry to reopen this issue, but today I notice that I have more than 1300 cgisess files in working/tmp - all from today (18/07/'19), starting at 12:46 upto now (21:44). Is that something I have to worry about, or can I simply delete these cgisess_~ files?

Kind regards

-- StijnBousard - 18 Jul 2019

In the meantime, I've noticed these files are deleted automatically after 9 hours.

-- StijnBousard - 25 Jul 2019
 

QuestionForm edit

Subject Installation of Foswiki, Configuration
Extension
Version Foswiki 1.1.4
Status Answered
Related Topics
Topic revision: r5 - 25 Jul 2019, StijnBousard
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy