mirror of
https://github.com/nextcloud/server.git
synced 2026-06-15 19:49:38 -04:00
Merge pull request #46393 from nextcloud/backport/46320/stable29
[stable29] perf: Set session.cache_limiter at runtime to avoid clients caching static assets served by PHP
This commit is contained in:
commit
ecd454e4ca
1 changed files with 1 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ class Internal extends Session {
|
|||
public function __construct(string $name) {
|
||||
set_error_handler([$this, 'trapError']);
|
||||
$this->invoke('session_name', [$name]);
|
||||
$this->invoke('session_cache_limiter', ['']);
|
||||
try {
|
||||
$this->startSession();
|
||||
} catch (\Exception $e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue