Postponed
Project:
FeedAPI
Version:
5.x-1.x-dev
Component:
Code feedapi (core module)
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
27 Nov 2007 at 14:20 UTC
Updated:
9 May 2009 at 04:33 UTC
Occurs with
* feedapi
* feedapi_node
When deleting a feed with many feed items, PHP can time out while deleting feed item nodes. In this case the feed entry in the feedapi table will remain in the database, although the node of the feed is deleted. FeedAPI will keep on creating feed items for those truncated feed nodes.
// in feedapi.module
function nodeapi(...) {
// ...
case 'delete':
// 'purge' removes all feed items on the feed node
feedapi_invoke_feedapi('purge', $node->feed);
db_query("DELETE FROM {feedapi} WHERE nid = %d", $node->nid);
break;
Comments
Comment #1
aron novakI only see one sane way: move the item purging to the cron time. Actually it's not a big deal to implement.
Comment #2
aron novakI committed a workaround to prevent the timeout. Now it's time to find a solution :)
Here i summarize the possible ways to go, please share me your opinion about these!
Any advice is really appreciated!
Comment #3
alex_b commentedNo changes planned.