custom pagers eating a ton of memory

elly - May 13, 2009 - 10:46
Project:Custom Pagers
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi - I'm using custom pagers for a prev/next button on a certain node type. It uses a view to populate the pager.

In my node template, I have it set up to only show the page if the user is viewing a single node, not if the user is viewing a node listing created by views. However, I have a few views that create a long list of nodes, and on those listings, custom pagers eats all my site's memory and keeps the view from showing up. Even though I'm not showing any pagers on those listings.

This is what's in my template:

<?php if ($page) { print $node->content['custom_pager_top']['2']['#value']; } ?>

What would be great is if I could 'exclude' pagers from the $content variable and only show them if they're called specifically in a template, like with CCK fields. This would also solve my other issue, here: http://drupal.org/node/441230

Would a short term solution to move the pager into a block and call the block from my template instead?

Right now parts of my site are unusable because of this memory issue. Witness:

http://elly.org/journals/tags/swinneyposts

Any advice would be appreciated. Gonna try the block thing if I don't hear any other advice.

Thanks!!

#1

iantresman - May 26, 2009 - 17:57

This could be related to my recent post "Fatal error: Allowed memory exhausted"

 
 

Drupal is a registered trademark of Dries Buytaert.