[development] Curl-based content generation

Andrew Berry andrewberry at sentex.net
Thu Feb 5 21:34:11 UTC 2009


On 5-Feb-09, at 1:50 PM, Earl Dunovant wrote:

> Use drupal_execute().
>
> http://api.drupal.org/api/function/drupal_execute/6

Unfortunately, there are some static caches which can cause problems  
when you call drupal_execute() multiple times in one request. You  
don't say what content type you're using, but there are some specific  
issues with the book module and the menu system. If you do end up  
using drupal_execute(), either do one node add per POST, or look at  
applying and reviewing the following patches:

http://drupal.org/node/360377 book_get_books() cache becomes stale  
when batch-inserting book pages
http://drupal.org/node/364529 menu_tree_all_data() static cache can  
become stale

--Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2672 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/development/attachments/20090205/3a99b657/attachment.bin 


More information about the development mailing list