From c480e571619c2e68000d85b866ef23c89ad83ddf Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 16 Aug 2024 22:40:56 +0200 Subject: Fix HTTP cache of user queries (#6718) fix https://github.com/FreshRSS/FreshRSS/issues/6717 --- lib/lib_rss.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib/lib_rss.php') diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 3e01fe7dd..d066bd254 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -631,11 +631,7 @@ function invalidateHttpCache(string $username = ''): bool { Minz_Session::_param('touch', uTimeString()); $username = Minz_User::name() ?? Minz_User::INTERNAL_USER; } - $ok = @touch(DATA_PATH . '/users/' . $username . '/' . LOG_FILENAME); - //if (!$ok) { - //TODO: Display notification error on front-end - //} - return $ok; + return FreshRSS_UserDAO::ctouch($username); } /** -- cgit v1.2.3