• So I’m working on a website with over 420 thousand posts consisting of a part name/number with some description/image as the content.

    What we need is a sort of categorized index within an index to use for some links in our footer, but right now I’m having trouble with memory exhausted/blank page when I try to use for example the next shortcode
    [a-z-listing post-type="post" grouping="2" numbers="after"]

    Since it’s indexing all the 425k posts the page crashes and I modified my php.ini file to add more memory to see if that could help (Working in a local copy of the site at the moment). but It doesn’t make a difference.

    Is there a way or custom shortcode that limits de amount of posts showed by the catalogue (For example limit the first 100 or 200 posts per letter or numbers) so that it won’t crash?

    I’ve been searching for an indexing plugin for posts for some weeks now, but between testing so far none works for what I need at the moment but this one could be promising.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    The plugin doesn’t provide a mechanism to limit the number of entries. If you’re showing posts then you can filter the posts by taxonomy-term to reduce the number of results prior to indexing.

    The problem is that in order to sort the list every post has to be loaded to fetch the title and work out the letter it belongs to. While the plugin does its best to reduce memory overhead the more posts you have in a list the more memory will be required to create the index. I plan to investigate a new method of building the listing, which might be able to use a wp-cron to incrementally build the listing, but I don’t want to break backward compatibility and ease of use of the shortcode/block so it is somewhat a difficult prospect.

    Thread Starter jmhelp

    (@jmhelp)

    Thank you for your reply

    Could it be possible for you to custom develop us a way to limit the number of entries or sort categories to show some posts (I tried multiple with the shortcode but it just doesn’t work for me. Is it just not feasible at the moment?
    I’ve been looking for a plugin that can help us out but they’re very limited on features, very few available, or just abandoned

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Memory exhausted or blank page’ is closed to new replies.