Skip to content

Commit d3105f2

Browse files
committed
revert
1 parent 28edd77 commit d3105f2

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

phpfastcache/3.0.0/drivers/files.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ function driver_stats($option = array()) {
143143

144144
$total = 0;
145145
$removed = 0;
146-
$content = array();
147146
while($file=@readdir($dir)) {
148147
if($file!="." && $file!=".." && is_dir($path."/".$file)) {
149148
// read sub dir
@@ -157,16 +156,6 @@ function driver_stats($option = array()) {
157156
$file_path = $path."/".$file."/".$f;
158157
$size = @filesize($file_path);
159158
$object = $this->decode($this->readfile($file_path));
160-
161-
if(strpos($f,".") === false) {
162-
$key = $f;
163-
}
164-
else {
165-
//Because PHP 5.3, this cannot be written in single line
166-
$key = explode(".", $f);
167-
$key = $key[0];
168-
}
169-
$content[$key] = array("size"=>$size,"write_time"=>$object["write_time"]);
170159
if($this->isExpired($object)) {
171160
@unlink($file_path);
172161
$removed += $size;
@@ -183,7 +172,6 @@ function driver_stats($option = array()) {
183172
"Expired and removed [bytes]" => $removed,
184173
"Current [bytes]" => $res['size'],
185174
);
186-
$res["data"] = $content;
187175
return $res;
188176
}
189177

0 commit comments

Comments
 (0)