mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-21 10:41:22 +00:00
Some experiments with a cache control thing. [skip ci]
This commit is contained in:
@@ -59,6 +59,7 @@ class CurrencyController extends Controller
|
||||
{
|
||||
|
||||
Preferences::set('currencyPreference', $currency->code);
|
||||
Preferences::mark();
|
||||
|
||||
Session::flash('success', $currency->name . ' is now the default currency.');
|
||||
Cache::forget('FFCURRENCYSYMBOL');
|
||||
@@ -170,6 +171,7 @@ class CurrencyController extends Controller
|
||||
if (Auth::user()->hasRole('owner')) {
|
||||
$currency = $repository->store($data);
|
||||
Session::flash('success', 'Currency "' . $currency->name . '" created');
|
||||
|
||||
}
|
||||
|
||||
if (intval(Input::get('create_another')) === 1) {
|
||||
@@ -198,6 +200,7 @@ class CurrencyController extends Controller
|
||||
$currency = $repository->update($currency, $data);
|
||||
}
|
||||
Session::flash('success', 'Currency "' . e($currency->name) . '" updated.');
|
||||
Preferences::mark();
|
||||
|
||||
|
||||
if (intval(Input::get('return_to_edit')) === 1) {
|
||||
|
||||
Reference in New Issue
Block a user