Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Value for Cache TTL #1642

Open
miqrogroove opened this issue Oct 31, 2024 · 0 comments
Open

Default Value for Cache TTL #1642

miqrogroove opened this issue Oct 31, 2024 · 0 comments

Comments

@miqrogroove
Copy link
Contributor

miqrogroove commented Oct 31, 2024

My recent ticket #1640 was closed for an invalid reason.

define('__CA_CACHE_TTL__', 3600);

This is the line of code that causes my user session to fail every hour.

This value should be something like ten times larger.

Steps to reproduce this problem:

  1. Leave your Providence instance unused for one hour to allow the cache to expire.
  2. In setup.php configure the TTL to a lower value such as 60.
  3. Log in to your Providence instance.
  4. Set a timer and don't click anything else for 2 minutes.
  5. After the delay, click on one of the links on the dashboard.

Expected result:

Link clicking should not be compromised by reasonable default values.

Actual result:

The click fails and redirects to the login screen.

Workaround:

In further testing, I found just setting the TTL to 36000 fully mitigates that problem for me.

Environment:

Providence dev/php8 pulled last month.
Cache backend constant set to apc
Ubuntu 20.04.6
PHP 8.3.13
php8.3-apcu v5.1.24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant