Checking email notifications. Write something to reply

I want to check how email notifications work on the forum. I would be happy if you could post something in this thread.

Hey, check it out. This more than 20 chars

2 Likes

Very strange, I don’t seem to have received an email notification.
Perhaps someone else can reply

1 Like

Okay, I think I’ll only get the email if I’m offline for 10 minutes.

1 Like

A simple answer without mentioning a piece of code

function fn_get_new_users(&$app)
{

    $last_user = fn_db_get_latest_user($app);

    $end_time = strtotime($last_user['last_seen_at']) - $app['update_period'];

    //$end_time = strtotime('2021-01-01');

    $url = FORUM_URL . "admin/users/list/active.json";

    for ($i = 1; $i < 10000; $i++) {

        $break = false;
        $params = [
            'order' => 'seen',
            'page' => $i
        ];

and a picture

@BDV
A reply mentioning the author.

The second answer, when the author is offline

`function fn_date_to_MongoDate($date)
{
    if (empty($date)) {
        return false;
    }

    $mongoDate = new MongoDB\BSON\UTCDateTime(strtotime($date) * 1000);

    return $mongoDate;
}
`
1 Like

Reply via email.
I’ll try to send a piece of code as well

/* Currently used memory */
$mem_usage = memory_get_usage();

/* Peak memory usage */
$mem_peak = memory_get_peak_usage();

вт, 21 сент. 2021 г. в 11:59, Daniil Bazhenov via Percona Community Forum <percona1@discoursemail.com>:

1 Like

Checking the new template

The change in the template didn’t work, I’ll have to try again.
This is how to work with Saas with services without staging, everything is alive.

Let’s try another option.
With a code and a picture.

    if (php_sapi_name() != 'cli') {
        ob_flush();
        flush();
    }

image

Here is the text of the answer that was sent to the topic.