Skip to content

Commit

Permalink
Merge pull request #8 from ethanbeyer/ethanbeyer-pr-2
Browse files Browse the repository at this point in the history
code reorg and cache clearing on import
  • Loading branch information
goellner authored Jul 1, 2021
2 parents 0d2938e + cd7e32c commit a8c633a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions DataImporter/DataImporterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace Statamic\Addons\DataImporter;

use Statamic\Extend\Controller;

use Statamic\API\Collection;
use Statamic\API\Fieldset;
use ParseCsv\Csv;
use Statamic\API\Collection;
use Statamic\API\Entry;
use Statamic\API\Str;
use Statamic\API\Fieldset;
use Statamic\API\Helper;
use Statamic\API\Please;
use Statamic\API\Str;
use Statamic\Extend\Controller;

class DataImporterController extends Controller
{
Expand Down Expand Up @@ -112,6 +112,9 @@ public function finalize()
$this->request->session()->remove('selected_collection');
$this->request->session()->remove('selected_collection_fields');

Please::call('clear:stache');
Please::call('clear:cache');
Please::call('clear:static');

return $this->view('finalize', $data);
}
Expand Down

0 comments on commit a8c633a

Please sign in to comment.