Session Cleanup Script

Last Updated: 17 Dec 2015

The script clears stale session files. This script takes one parameter, the system root directory, and is located in the /scripts directory.

The script should be added to the crontab file to handle garbage collection periodically. As a guide, it should only need to be run once a day on average-traffic systems, but may need to be run more often on high-traffic systems.

This script is only effective when your system is configured to run the default Matrix cache. If you are using Memcache or Redis cache storage, this cleanup process is handled internally by these caching systems.

Previous Chapter Next Chapter

The Latest

Let Us Know What You Think

Let us know if you spot any errors or if you have any ideas on how we can improve the Matrix Community Website.

Contact Squiz for Demo

Let us show you the true power of Squiz Matrix by giving you a personalised demonstration.