mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-31 10:07:21 +01:00
Clear cache on restore
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user