Project

General

Profile

Bug #9926

twitter-mentions-as-comments cron jobs can run long

Added by Boone Gorges 10 months ago. Updated 6 months ago.

Status:
New
Priority name:
Normal
Assignee:
Category name:
WordPress Plugins
Target version:
Start date:
2018-06-13
Due date:
% Done:

0%

Estimated time:

Description

Just logged a long request triggered by a cron job in twitter-mentions-as-comments. It appears that the plugin does an hourly check that involves pulling up every single post on the site. This can take a very long time when a site has many posts. The plugin has no obvious internal mechanism for dividing this process into batches.

The plugin hasn't been updated in 5 years, so we might consider disabling it. Here are the sites where it's running:

[0] => http://connections.commons.gc.cuny.edu
[1] => http://jitp.commons.gc.cuny.edu
[0] => http://newtestsite.commons.gc.cuny.edu
[1] => http://eshtestcac.commons.gc.cuny.edu
[2] => http://arctest2.commons.gc.cuny.edu
[3] => http://acert.commons.gc.cuny.edu
[0] => http://jitpdev.commons.gc.cuny.edu
[1] => http://jitpstaging.commons.gc.cuny.edu
[2] => http://foodscholar.commons.gc.cuny.edu

I'll start by putting 15 minutes in to see if I can rewrite the plugin to use separate cron tasks for each post.


Related issues

Related to CUNY Academic Commons - Feature #8987: Migrate away from wp-cronResolved2017-12-07

History

#1 Updated by Boone Gorges 10 months ago

#2 Updated by Matt Gold 10 months ago

Thanks so much, Boone

#3 Updated by Boone Gorges 6 months ago

  • Target version changed from 1.14 to Future release

Also available in: Atom PDF