joer80 Posted January 2, 2017 Share Posted January 2, 2017 I noticed there were 10k files in my site/assets/sessions folder. It does not appear they are older than 24 hours. Is this normal? Do they auto delete and refresh every day? Thanks! Link to comment Share on other sites More sharing options...
arjen Posted January 2, 2017 Share Posted January 2, 2017 Probably something to do with the php garbage collection. Check this out: 1, 2. 6 Link to comment Share on other sites More sharing options...
joer80 Posted January 2, 2017 Author Share Posted January 2, 2017 Those are helpful links. It appears it is not something processwire is doing so much, it just changed the default location for what php already does. I would guess the files are necessary for allowing php to save session variables and deleting them would be bad. If so, I would want those to last 24 hours and do not think it would be a good idea to shorten their lifespan. If it were a garbage collection issue, I would think they would be not clearing out everyday. I think websites with a lot of traffic may benefit from having them saved in the database though to save inodes. Even downloading your website via ftp would be a hassle with it this way. It is easy to get around by compressing the website and downloading that file though. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now