Very slow – almost endless recursivity because of the rules
-
I can’t list more then 20 posts in the feed, because the script timeouts.
I’m using the newest version of the plugin.
In the
fb-instant-articles\vendor\facebook\facebook-instant-articles-sdk-php\src\Facebook\InstantArticles\Transformer\Transformer.php
The transform function calls the $rule->apply(…)
That’s ok, but some of the apply functions call back the transfrom functionFor example it is a problem if you have a post with many images, then for one post to generate in the feed, it takes 5-10 seconds.
ImageRule.php: $transformer->transform($image, $node);
So, if the timeout is set to 180 second, then I can’t generate more than 20 posts without a timeout. And for obvious reasons I don’t want to raise the timeout.I looked just for images, but the ParagraphRule and others also call back to the transformer function and slows down the process.
Can you correct it, or I should use the version 0.2?
Thanks!
- The topic ‘Very slow – almost endless recursivity because of the rules’ is closed to new replies.