phpbb cron job keeps sending notification emails

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
User avatar
Registered User
Posts: 1858
Joined: Wed Aug 15, 2018 3:23 am

Re: phpbb cron job keeps sending notification emails

Post by EA117 »

Erpenator wrote:
Fri Mar 06, 2020 11:10 am
The question that remains is which urls / pages / processes should not be cached to prevent the forum to keep sending those notification emails? I thought I already was caching only the topic and forum pages.
Unless you have "Email package size:" set to zero in the phpBB ACP Email Settings page, it's and which end up actually sending the emails. Note these are just the base URLs, and there will be additional variable parameters present like "?cron_type=xxxxxxxx".

Viewing a page on phpBB doesn't always include an invocation of the cron URL. But it certainly could make sense that if a page is being cached and presented more times / to more visitors than phpBB intended, if the page that got cached did also happen to include a cron URL invocation, then everyone who received the cached copy of the page would have all tried to invoke that same cron URL.

But that doesn't immediately explain "and so I received duplicate notification emails." The "send queued emails" cron task might indeed have been run multiple times when phpBB didn't intend this to happen. But if the first invocation successfully sent the queued emails, those additional invocations should have just found that the mail queue was empty, rather than "so we will send the same notifications again."

So it still feels like there is some other ingredient here that we don't understand yet. Maybe a different way to test "is the cron URL being cached and invoked multiple times" being involved here would be to simply change "Email package size:" to zero in the phpBB ACP Email Settings page. So that all the notification emails will get sent "immediately" during the session of whomever is actually posting the message or event that triggers notification; rather than just queuing the emails to be sent later.
Post Reply

Return to “[3.3.x] Support Forum”