Clear cache on restore

This commit is contained in:
Henry Whitaker
2020-09-05 00:58:04 +01:00
parent 751acff32c
commit 601d46915c

View File

@@ -3,6 +3,7 @@
namespace App\Helpers;
use App\Speedtest;
use Cache;
use DateTime;
use Exception;
use Illuminate\Support\Facades\Log;
@@ -59,6 +60,7 @@ class BackupHelper {
*/
public static function restore($array, $format)
{
Cache::flush();
if($format == 'json') {
foreach($array as $test) {
try {