other/upgrade.php 1 location
|
@@ 193-197 (lines=5) @@
|
| 190 |
|
|
| 191 |
|
// Remove the files in SMF's own disk cache, if any |
| 192 |
|
$dh = opendir($cachedir); |
| 193 |
|
while ($file = readdir($dh)) |
| 194 |
|
{ |
| 195 |
|
if ($file != '.' && $file != '..' && $file != 'index.php' && $file != '.htaccess' && (!$type || substr($file, 0, strlen($type)) == $type)) |
| 196 |
|
@unlink($cachedir . '/' . $file); |
| 197 |
|
} |
| 198 |
|
closedir($dh); |
| 199 |
|
|
| 200 |
|
// Invalidate cache, to be sure! |
Sources/Subs.php 1 location
|
@@ 3946-3950 (lines=5) @@
|
| 3943 |
|
|
| 3944 |
|
// Remove the files in SMF's own disk cache, if any |
| 3945 |
|
$dh = opendir($cachedir); |
| 3946 |
|
while ($file = readdir($dh)) |
| 3947 |
|
{ |
| 3948 |
|
if ($file != '.' && $file != '..' && $file != 'index.php' && $file != '.htaccess' && (!$type || substr($file, 0, strlen($type)) == $type)) |
| 3949 |
|
@unlink($cachedir . '/' . $file); |
| 3950 |
|
} |
| 3951 |
|
closedir($dh); |
| 3952 |
|
break; |
| 3953 |
|
} |