Reparse cron job - do I need to disable it?

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

Reparse cron job - do I need to disable it?

Post by EA117 »

I can't find it acknowledged or discussed in https://www.phpbb.com/support/docs/en/3 ... -reparser/ or https://area51.phpbb.com/docs/dev/3.2.x ... t-reparser, and if there is an existing topic discussion of this, my search didn't expose it. So if its already written somewhere, hopefully not something too obvious that I'm overlooking.

After encountering the bbcode.php failures on my updated 3.2.2 board, I've now manually ran "bin/phpbbcli.php reparser:reparse --ansi" and reparsed all the various locations of BBCode use successfully on my upgraded 3.2.2 board. From a BBCode perspective, everything is fine now.

Now that I've done that, do I need to "disable" the cron job created during upgrade that is "also" reparsing my messages? i.e. The reparse processing that occurs 100 messages at a time whenever a visitor hits the site, after 3600 seconds have elapsed since the cron was last allowed to hijack the connection process. (As described in viewtopic.php?f=556&t=2410541&p=1467084 ... #p14670841.)

Or does manually running the reparse from CLI already update or disable something that ensures this cron task will never run again? Clearly the CLI reparse already did the actual reparse work; but that doesn't mean the cron task isn't also still trying to do the same work, until the cron task knows he too has visited all 45000+ messages that the CLI already reparsed.

The reason I ask is that I'm still seeing a periodic 3 to 5 second delay when I first access the new 3.2.2 board. (When the 3.0.14 board runs on this same host, no such delay is apparent.) Once I've observed the delay, I don't see the delay again until "I'm done and come back some time later." I've tested turning off the "Check IP against DNS Blackhole List" but that didn't get rid of the delay, and I'm already using an unmodified proSilver theme when seeing this delay.

Once the reparse issue was pointed out to me, then it made sense that perhaps this "periodic delay" is the cron process still going through my messages 100 at a time each time someone connects, once every 3600 seconds. Simply running the CLI reparse hasn't stopped the delay; but I'm wondering if that's because I explicitly need to disable the reparse cron task from thinking it's responsible to continue walking the messages?

Thanks. -Trench
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: Reparse cron job - do I need to disable it?

Post by 3Di »

EA117 wrote: Mon Aug 20, 2018 11:37 pm Or does manually running the reparse from CLI already update or disable something that ensures this cron task will never run again?
Yes. That should release the reparser's lock so the reparser->should_run() function results false.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
EA117
Registered User
Posts: 2158
Joined: Wed Aug 15, 2018 3:23 am
Contact:

Re: Reparse cron job - do I need to disable it?

Post by EA117 »

3Di wrote: Mon Aug 20, 2018 11:57 pm
EA117 wrote: Mon Aug 20, 2018 11:37 pm Or does manually running the reparse from CLI already update or disable something that ensures this cron task will never run again?
Yes. That should release the reparser's lock so the reparser->should_run() function results false.
Perfect, thanks. I'll continue looking elsewhere for the source of my observed delay.

-Trench
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Reparse cron job - do I need to disable it?

Post by david63 »

There are several cron jobs, other than the reparser, that run automatically - it may be one of those that is running.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
Post Reply

Return to “[3.2.x] Support Forum”