This question about Installation of Foswiki, Configuration: Answered

Is it OK to clear the working/tmp directory?


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

QuestionForm edit

Subject Installation of Foswiki, Configuration
Version Foswiki 1.1.4
Status Answered
Related Topics
Topic revision: r3 - 02 Jun 2014, WilliamMorgan - This page was cached on 13 May 2019 - 15:16.

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