-
-
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] add2scheduler-sessiongc #41326
[5] add2scheduler-sessiongc #41326
Conversation
Co-authored-by: Richard Fath <[email protected]>
Co-authored-by: Richard Fath <[email protected]>
Co-authored-by: Richard Fath <[email protected]>
Co-authored-by: Richard Fath <[email protected]>
Co-authored-by: Richard Fath <[email protected]>
Where is the code to add the task in the database for new J5.0 installations? |
@alikon @heelc29 is right: As on a new J5 installation the secciongc plugin would be enabled by default, it needs something like this here: https://github.com/joomla/joomla-cms/pull/40788/files#diff-fa733b616bbcc3e559d5003d630a5ba449c1cec34c00d1f44aa6d6c7d1dc75d0 |
Co-authored-by: Brian Teeman <[email protected]>
Co-authored-by: Brian Teeman <[email protected]>
Co-authored-by: heelc29 <[email protected]>
The language strings for the backend, e.g. the plugin name, are not translated. The reason could be the casing of the Plugin PHP files, "SessionGC" instead of "Sessiongc". |
I have tested this item 🔴 unsuccessfully on cc22a2a This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41326. |
thanks richard for finishing this pr. |
thank you all for your help |
Summary of Changes
move sessiongc from system plugin to scheduler/task plugin
Testing Instructions
Hint: The execution times and hours shown for tasks in the administrator are in the UTC timezone.
New installation
Make a new installation with this PR applied.
Check if there is an enabled task scheduler plugin "Task - Session Data Purge".
Check if there is an enabled scheduled task "SessionGC" using that plugin.
Check that the new task shall run every 24 hours at the hour when the Joomla installation was made.
Update
On a Joomla 4.4-dev version or 4.4.0 alpha 4, note the endabled status and the configuration parameters of the "System - Session Data Purge" plugin.
Now either disable that plugin or enable it and optionally change some of the configuration parameters to a value different to the default.
Update to the patched package or custom update URL created by Drone for this PR.
Check if the "System - Session Data Purge" plugin has been uninstalled.
Check if there is a task scheduler plugin "Task - Session Data Purge".
Check enabled status and configuration parameters of that plugin.
Check if there is a scheduled task "SessionGC" using that plugin. If so, check the configuration parameters, too.
Repeat the previous steps with different endabled status and configuration parameters of the "System - Session Data Purge" plugin.
Actual result BEFORE applying this Pull Request
Deletion of outdated session data is done with the "System - Session Data Purge" plugin.
Expected result AFTER applying this Pull Request
New installation
The "Task - Session Data Purge" plugin is enabled, and a scheduled task "SessionGC" is enabled to run every 24 hours at the hour of the Joomla installation.
Update
The "System - Session Data Purge" plugin has been uninstalled by the update.
A new task scheduler plugin "Task - Session Data Purge" has been created and is enabled.
If the old "System - Session Data Purge" plugin was enabled before the update, a new scheduled task "SessionGC" has been created and is enabled.
It will execute every 24 hours at the hour of the Joomla installation.
The configuration parameters "Enable Session Data Cleanup", "Enable Session Metadata Cleanup", "Probability" and "Divisor" of that task are set to the same values as the same parameters in the old system plugin's parameters:
If the old "System - Session Data Purge" plugin was disabled before the update, there is no task for that plugin.
Link to documentations
Please select:
Documentation link for docs.joomla.org: link will be added later
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed