Cache blob size
Cache blob size

--- a/include/git/blob/Blob.class.php
+++ b/include/git/blob/Blob.class.php
@@ -237,7 +237,7 @@
 		if (!$this->dataEncoded)
 			$this->EncodeData();
 
-		$properties = array('data', 'dataRead', 'dataEncoded', 'binary');
+		$properties = array('data', 'dataRead', 'dataEncoded', 'binary', 'size');
 
 		return array_merge($properties, parent::__sleep());
 	}

comments