• Resolved Rafael Rossi Silva

    (@rafaelsilva316)


    I have a website that uses several thousand feed sources, and many items per source. The items will show up in different parts of the site. I have thousands of a custom post type, and each of these posts has an associated rss source. In the single post page, there is a widget that shows the latest 5 items in the feed. Right now, some posts take a long time to load (~30 seconds) whereas in other posts the widget shows the error: Fatal Error: Allowed Memory Exhausted.

    I am not using any wp rss aggregator add-ons, including post to feed. Why would some sources go over the memory limit, and why are others taking so long? I have inserted the sources as as shortcodes:

    $shortcode = sprintf('[wp-rss-aggregator feeds="%1$s"  template="sidebar" limit="5"]', $feed_title);
    echo do_shortcode( $shortcode );

    Any and all guidance or responses are welcome. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • @rafaelsilva316 from your description, it’s possible that the issue might be related to the number of entries being loaded on the database as they are saved on the standard WordPress tables. The shortcode runs a query to fetch the imported entries, however, the database query is bound to take longer as the database grows larger even when fetching only the latest entries.

    Thread Starter Rafael Rossi Silva

    (@rafaelsilva316)

    I see, thank you for your reply and guidance.

    Does this mean I have no recourse other than lowering how many feed items are stored in the database?

    @rafaelsilva316 thanks for the follow-up, I’m afraid that would be the best approach, alternatively, if possible you could increase the resource limits on your site such as the memory and execution times.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal Error: Allowed Memory Exhausted’ is closed to new replies.