Hi,

I am facing this issue regardless of the number of items created.

It is only deleting one item at a run, and 24 items should not cause a script time out :)

CommentFileSizeAuthor
#5 batch_node_purge.patch3.24 KBaron novak

Comments

aron novak’s picture

Status: Active » Postponed (maintainer needs more info)

First, please enable devel module and Exex. php block and execute the following:

$max_execution_time = ini_get('max_execution_time');
dprint_r($max_execution_time);
dprint_r(timer_read('page')/1000);

Maybe another module mess up the page timer??
The point is here:

if (($max_execution_time - 5) < round(timer_read('page') / 1000)) {

What other modules did you install? Maybe some of the modules (which are involved in the nodeapi) do something slow while $op='delete'.
At my test site all of the feed items can be deleted at one run super fast.

aron novak’s picture

First, please enable devel module and Exex. php block and execute the following:

$max_execution_time = ini_get('max_execution_time');
dprint_r($max_execution_time);
dprint_r(timer_read('page')/1000);

Maybe another module mess up the page timer??
The point is here:

if (($max_execution_time - 5) < round(timer_read('page') / 1000)) {

What other modules did you install? Maybe some of the modules (which are involved in the nodeapi) do something slow while $op='delete'.
At my test site all of the feed items can be deleted at one run super fast.

aharown07’s picture

I am having this problem as well. Can't use Devel without messing up Ad module and Reftagger (and maybe others). So I'm not sure how to get you more info. Have gobs of mods installed.

aron novak’s picture

Title: 1 feed items of 24 could be deleted before script time out - click Remove items again to delete more. » Delete item nodes via Batch API to avoid timeouts
Category: support » task

Well, it's all because of PHP timeouts. My proposed solution is to delete item nodes via Batch API to avoid timeouts. Expect a patch soon.

aron novak’s picture

StatusFileSize
new3.24 KB

Try out this patch and tell me if it helps or not. In fact it should help :)

aharown07’s picture

Not good at applying patches, but I can learn. Gave it a try, but the patch util seems to be looking for a Feb 21 version of feedapi module... and I am not having alot of luck finding that version (have a Feb 24....latest dev, and Feb 3, 6x-1.6 installed)

aron novak’s picture

Status: Postponed (maintainer needs more info) » Fixed

Now it's handled in feedapi_node

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.