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

Fix WP cron garbage collection scheduler #253

Merged
merged 2 commits into from
Jun 20, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions includes/lib/wp-session/wp-session.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ function clef_wp_session_cleanup() {
add_action( 'wp_session_garbage_collection', 'clef_wp_session_cleanup' );

/**
* Register the garbage collector as a twice daily event.
* Register the garbage collector.
*/
function clef_wp_session_register_garbage_collection() {
if ( ! wp_next_scheduled( 'wp_session_garbage_collection' ) ) {
if ( ! wp_next_scheduled( 'clef_wp_session_garbage_collection' ) ) {
wp_schedule_event( time(), 'hourly', 'clef_wp_session_garbage_collection' );
}
}
Expand Down
5 changes: 5 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ Clef employs a distributed security architecture, which means Clef stores no use

== Changelog ==

= 2.5.5 =
Released 20 June 2016

* Fix: WP cron scheduler adding excess session garbage collection events ([253](https://github.com/clef/clef-wordpress/pull/253))

= 2.5.4 =
Released 16 June 2016

Expand Down