[Rt-commit] rt branch, 4.0/clean-old-session-lock-files, created. rt-4.0.8rc1-1-g16ca6e6

? sunnavy sunnavy at bestpractical.com
Sun Oct 14 12:06:06 EDT 2012


The branch, 4.0/clean-old-session-lock-files has been created
        at  16ca6e6bf61a350cbff4844b3704b19eeef7c101 (commit)

- Log -----------------------------------------------------------------
commit 16ca6e6bf61a350cbff4844b3704b19eeef7c101
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Sun Oct 14 23:26:17 2012 +0800

    clean session lock files ourselves
    
    it's not automatically cleaned by Apache::Session

diff --git a/lib/RT/Interface/Web/Session.pm b/lib/RT/Interface/Web/Session.pm
index c5b88f1..1e166eb 100644
--- a/lib/RT/Interface/Web/Session.pm
+++ b/lib/RT/Interface/Web/Session.pm
@@ -224,6 +224,10 @@ sub _ClearOldDir {
         tied(%session)->delete;
         $RT::Logger->info("successfuly deleted session '$id'");
     }
+
+    my $lock = Apache::Session::Lock::File->new;
+    $lock->clean( $dir, $older_than );
+
     return;
 }
 

-----------------------------------------------------------------------


More information about the Rt-commit mailing list