Skip to content

Commit

Permalink
Merge pull request #253 from clef/fix-session-garbage
Browse files Browse the repository at this point in the history
Fix WP cron garbage collection scheduler
  • Loading branch information
lolux authored Jun 20, 2016
2 parents a041ade + 51f4164 commit d77c4d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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

0 comments on commit d77c4d6

Please sign in to comment.