Ignore:
Timestamp:
01/24/12 09:31:40 (4 months ago)
Author:
OlivierRaginel
Message:

Item11458: Try to optimise filesystem accesses by minimizing stat() calls. Also Sven, 3 arguments open!!!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/lib/Foswiki/Users/HtPasswdUser.pm

    r13796 r13811  
    163163 
    164164    # We expect the path to exist and be writable. 
    165     return 0 if ( -e $path && -f $path && -w $path ); 
     165    return 0 if ( -e $path && -f _ && -w _ ); 
    166166 
    167167    # Otherwise, log a problem. 
     
    228228        && -e $Foswiki::cfg{Htpasswd}{FileName} ) 
    229229    { 
    230         my $fileTime = ( stat( $Foswiki::cfg{Htpasswd}{FileName} ) )[9]; 
     230        my $fileTime = ( stat(_) )[9]; 
    231231        $this->ClearCache() 
    232232          if ( $fileTime > $this->PasswordTimestamp() ); 
Note: See TracChangeset for help on using the changeset viewer.