Skip to content

Firefly III: a personal finances manager

fix: small issue with cache

James Cole25779206a185
diff --git a/.ci/php-cs-fixer/composer.lock b/.ci/php-cs-fixer/composer.lock
index 99c05c13df..b1c40622d6 100644
--- a/.ci/php-cs-fixer/composer.lock
+++ b/.ci/php-cs-fixer/composer.lock
@@ -379,16 +379,16 @@
},
{
"name": "friendsofphp/php-cs-fixer",
- "version": "v3.20.0",
+ "version": "v3.21.1",
"source": {
"type": "git",
"url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git",
- "reference": "0e8249e0b15e2bc022fbbd1090ce29d071481e69"
+ "reference": "229b55b3eae4729a8e2a321441ba40fcb3720b86"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/0e8249e0b15e2bc022fbbd1090ce29d071481e69",
- "reference": "0e8249e0b15e2bc022fbbd1090ce29d071481e69",
+ "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/229b55b3eae4729a8e2a321441ba40fcb3720b86",
+ "reference": "229b55b3eae4729a8e2a321441ba40fcb3720b86",
"shasum": ""
},
"require": {
@@ -398,7 +398,7 @@
"doctrine/lexer": "^2 || ^3",
"ext-json": "*",
"ext-tokenizer": "*",
- "php": "^7.4 || ^8.0",
+ "php": "^8.0.1",
"sebastian/diff": "^4.0 || ^5.0",
"symfony/console": "^5.4 || ^6.0",
"symfony/event-dispatcher": "^5.4 || ^6.0",
@@ -463,7 +463,7 @@
],
"support": {
"issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues",
- "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.20.0"
+ "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.21.1"
},
"funding": [
{
@@ -471,7 +471,7 @@
"type": "github"
}
],
- "time": "2023-06-27T20:22:39+00:00"
+ "time": "2023-07-05T21:50:25+00:00"
},
{
"name": "psr/cache",
diff --git a/.env.example b/.env.example
index 80bde95539..246385673d 100644
--- a/.env.example
+++ b/.env.example
@@ -241,7 +241,7 @@ ALLOW_WEBHOOKS=false
#
# The static cron job token can be useful when you use Docker and wish to manage cron jobs.
# 1. Set this token to any 32-character value (this is important!).
-# 2. Use this token in the cron URL instead of a user's command line token.
+# 2. Use this token in the cron URL instead of a user's command line token that you can find in /profile
#
# For more info: https://docs.firefly-iii.org/firefly-iii/advanced-installation/cron/
#
diff --git a/app/Http/Controllers/Budget/BudgetLimitController.php b/app/Http/Controllers/Budget/BudgetLimitController.php
index b62e1192e5..ee6c02d6b2 100644
--- a/app/Http/Controllers/Budget/BudgetLimitController.php
+++ b/app/Http/Controllers/Budget/BudgetLimitController.php
@@ -236,6 +236,7 @@ class BudgetLimitController extends Controller
}
$limit = $this->blRepository->update($budgetLimit, ['amount' => $amount]);
+ app('preferences')->mark();
$array = $limit->toArray();
$spentArr = $this->opsRepository->sumExpenses(
diff --git a/app/Http/Controllers/DebugController.php b/app/Http/Controllers/DebugController.php
index 634adb525a..32b797cb67 100644
--- a/app/Http/Controllers/DebugController.php
+++ b/app/Http/Controllers/DebugController.php
@@ -23,7 +23,6 @@ declare(strict_types=1);
namespace FireflyIII\Http\Controllers;
-use Artisan;
use DB;
use Exception;
use FireflyConfig;
@@ -34,6 +33,7 @@ use Illuminate\Contracts\View\Factory;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Routing\Redirector;
+use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Log;
use Illuminate\View\View;
use Monolog\Handler\RotatingFileHandler;
@@ -88,6 +88,7 @@ class DebugController extends Controller
app('preferences')->mark();
$request->session()->forget(['start', 'end', '_previous', 'viewRange', 'range', 'is_custom_range', 'temp-mfa-secret', 'temp-mfa-codes']);
Log::debug('Call cache:clear...');
+
Artisan::call('cache:clear');
Log::debug('Call config:clear...');
Artisan::call('config:clear');