Project

General

Profile

Actions

Support #1445

closed

How to clean the sessions table in mysql

Added by Yongchao Gao about 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Triaged:
Fixed in Releases:
Found in Releases:

Description

our sessions table in mysql is about 800MB, i wonder if there is a way to clean it?

Actions #1

Updated by Ohad Levy about 12 years ago

  • Status changed from New to Closed

sure, see here: https://github.com/ohadlevy/puppet-foreman/blob/master/foreman/manifests/config.pp#L41

or just do

rake db:sessions:clear RAILS_ENV=production
Actions

Also available in: Atom PDF