-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[5.0] Task parameter SessionGC #41608
Comments
It might depend on the configured session handler, if file or database. I think for file they might still be needed because these parameters are passed to php built in methods, and php handles deletion. For database where Joomla handles deletion they might not be necessary. But I am not really sure, I just remember something like that. |
I only found references in the plugin itself joomla-cms/plugins/task/sessiongc/src/Extension/SessionGC.php Lines 122 to 129 in 03da48b
|
@heelc29 I found this but don’t have the time to check in detail now: https://www.php.net/manual/en/function.session-gc.php
|
If i see it right this function ( And the task parameter have nothing to do with the php parameter If I search in the code there is only one result: |
@heelc29 From what I can see you are right. It was once implemented in Joomla 3.8.6 in that way so it behaves same as the PHP sessiongc, as far as I understand: #19687 . But the parameters are not really related to those used by PHP, and now as we have a scheduled task I also think it should not need that. However, I am not really an expert on our session handling. I only took the task to finish the scheduler task plugins for J5 because of the beta 1 with the feature freeze being so close and the author of the PRs having been busy with his regular, daily job. So for me it would be ok if someone else takes that task and fixes that. But it should be tested with real tests, not just by code review, so it needs to write good testing instructions. |
Me neither |
Parameters can be removed, they are only used to not run the garbage collection with each request. |
@HLeithner Can the corresponding language strings be removed, too? Or shall they be deprecated? |
can be removed too since they are new in j5 |
i was thinking at this when i've started to write the pr #41326, but at some point i forgot, i'll do a pr |
Steps to reproduce the issue
Are the parameters for Divisor and Probability still necessary after convert plugin to task (#41326) where it is possible to set execution rules?
The text was updated successfully, but these errors were encountered: