Skip to:
Content

BuddyPress.org

Changes between Initial Version and Version 1 of Ticket #7534, comment 5


Ignore:
Timestamp:
01/27/2018 08:19:20 PM (6 years ago)
Author:
r-a-y
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7534, comment 5

    initial v1  
    44- Fixes notification date queries(!).  We were referencing the wrong date column in the `BP_Notifications_Notification::get_date_query_sql()` method.
    55- Introduces a cronjob to delete stale notifications every week - `bp_notifications_cron()`.  Can probably add a filter to change the interval if desired.
    6 - Introduces a utility function to delete stale notifications - `bp_notifications_delete_stale()`.  This function deletes stale notifications older than 30 days, 2000 items at a time by default.  If there are more stale notifications to remove, the function runs recursively until all stale notifications are removed.
     6- Introduces a utility function to delete stale notifications - `bp_notifications_delete_stale()`.  This function deletes stale notifications older than 30 days, 1000 items at a time by default.  If there are more stale notifications to remove, the function runs recursively until all stale notifications are removed.
    77- Adds a new method to delete multiple notifications by ID - `BP_Notifications_Notification::delete_by_ids()`.  I couldn't use the existing `delete()` method as it can only delete one notification at a time, which can be a hassle when deleting a ton of notifications at once.
    88