Do you have pyramid_debugtoolbar enabled?

On Fri, Jan 25, 2013 at 9:36 PM, Chris Rossi <[email protected]>wrote:

> Do your templates call other templates?
>
>
> On Fri, Jan 25, 2013 at 7:31 PM, Jonathan Vanasco 
> <[email protected]>wrote:
>
>> things were looking weird in my dev environment as I worked on a cache
>> primer.
>>
>> when i was inspecting the request.pathinfo, i noticed that it was
>> repeating  a bit
>>
>> so i just tried an incremental test... and i seem to get '8' as a
>> magic number.
>>
>> does anyone know why this would run 8 times ?
>>
>> config.add_subscriber(\
>>         "myapp.subscribers.prime_cache",
>>         "pyramid.events.BeforeRender")
>>
>>
>> def prime_cache(event):
>>     """A subscriber for ``pyramid.events.BeforeRender`` events.
>>     This primes the cache
>>     """
>>     request = event.get("request") or
>> threadlocal.get_current_request()
>>     if not request:
>>         return
>>     if not hasattr( request , 'primed' ):
>>         request.primed = 1
>>     request.primed += 1
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "pylons-discuss" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
>
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to