1
0
Fork 0
mirror of https://github.com/buddypress/buddypress.git synced 2026-07-21 20:54:17 +08:00
buddypress/tests/phpunit/testcases/notifications
Boone B Gorges bcd37e29d3 Move notification-grouping logic to MySQL.
The notification-grouping logic required to show the collapsed Notifications
toolbar - "You have 3 pending friend requests", etc - is currently done in
PHP, in a manner that requires all notifications to be loaded into memory
and processed. On sites where users have large numbers of notifications, this
operation requires extensive resources. By leaving the grouping to MySQL,
we can speed up processing in almost all situations.

This changeset also adds specific caching for grouped notifications.

Props m_uysl.
See #7130.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@11888 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2018-03-05 12:57:24 +00:00
..
class-bp-notifications-notification.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
class-bp-notifications-template.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
functions.php Move notification-grouping logic to MySQL. 2018-03-05 12:57:24 +00:00
template.php Don't create a current user by default in most unit tests. 2015-02-27 03:00:42 +00:00