File tree 1 file changed +0
-10
lines changed
phpfastcache/3.0.0/drivers
1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,6 @@ function driver_stats($option = array()) {
143
143
144
144
$ total = 0 ;
145
145
$ removed = 0 ;
146
- $ content = array ();
147
146
while ($ file =@readdir ($ dir )) {
148
147
if ($ file !=". " && $ file !=".. " && is_dir ($ path ."/ " .$ file )) {
149
148
// read sub dir
@@ -157,14 +156,6 @@ function driver_stats($option = array()) {
157
156
$ file_path = $ path ."/ " .$ file ."/ " .$ f ;
158
157
$ size = @filesize ($ file_path );
159
158
$ object = $ this ->decode ($ this ->readfile ($ file_path ));
160
-
161
- if (strpos ($ f ,". " ) === false ) {
162
- $ key = $ f ;
163
- }
164
- else {
165
- $ key = explode (". " , $ f )[0 ];
166
- }
167
- $ content [$ key ] = array ("size " =>$ size ,"write_time " =>$ object ["write_time " ]);
168
159
if ($ this ->isExpired ($ object )) {
169
160
@unlink ($ file_path );
170
161
$ removed += $ size ;
@@ -181,7 +172,6 @@ function driver_stats($option = array()) {
181
172
"Expired and removed [bytes] " => $ removed ,
182
173
"Current [bytes] " => $ res ['size ' ],
183
174
);
184
- $ res ["data " ] = $ content ;
185
175
return $ res ;
186
176
}
187
177
You can’t perform that action at this time.
0 commit comments