Changeset 2395

Show
Ignore:
Timestamp:
04/01/2008 05:21:07 AM (8 months ago)
Author:
Geert
Message:

Chops off timestamp from filename more than twice as fast.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/drivers/Cache/File.php

    r2393 r2395  
    231231        { 
    232232                // Get the expiration time 
    233                 $expires = (int) end(explode('~', $file)); 
     233                $expires = (int) substr($file, strrpos($file, '~') + 1); 
    234234 
    235235                // Expirations of 0 are "never expire"