Sean,

> I guess at that point it's almost easier to expire the entire  
> cache! ;)

That's a great point, but the only reason that I don't want to expire  
the whole cache is because it takes forever to regenerate each page.  
I think the slowness is due to the way I have my navigation set up,  
since it is doing a lot of iteration with if_children and  
if_ancestor_or_self to build the navigation and sub-navigation menus.  
At this point it takes as long as 2 seconds to render a page after  
the cache is expired.

So I guess the issue is not how to creatively expire the cache, but  
how to speed up the rendering of the navigation.

Has anyone done hierarchical navigation like this before? Is there a  
more efficient way to do it?

Thanks!



On Jun 21, 2007, at 4:34 PM, Sean Cribbs wrote:

> I guess at that point it's almost easier to expire the entire  
> cache! ;)
>
> Sean
>
> Ryan Heneise wrote:
>> I guess also, I'd need to be able to expire a page's parent, and all
>> the parent's children. The case where that would be necessary is if
>> the title of the page was changed, so you'd need to regenerate the
>> navigation on all the pages in that section.
>>
>>
>> On Jun 21, 2007, at 4:02 PM, Ryan Heneise wrote:
>>
>>
>>> Is there an easy way to expire a page and all its children?
>>>
>>> For example, this page: http://biola.artofmission.com/news/ and all
>>> its children need to be expired whenever a new page is posted in the
>>> news section.
>>>
>>> I was just going to do ResponseCache.instance.expire_response
>>> (page.url) recursively, but I was hoping there was a more elegant  
>>> way
>>> to do it.
>>>
>>> thanks,
>>> ryan
>>> _______________________________________________
>>> Radiant mailing list
>>> Post:   [email protected]
>>> Search: http://radiantcms.org/mailing-list/search/
>>> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>>>
>>>
>>
>> ------------------------------------------------
>> Ryan Heneise
>> Art of Mission, Inc.
>> 3720 Gattis School Rd #800 PMB 245
>> Round Rock, TX 78664
>>
>> 800-722-1492 (phone)
>>
>> www.artofmission.com
>> [EMAIL PROTECTED]
>>
>>
>>
>> _______________________________________________
>> Radiant mailing list
>> Post:   [email protected]
>> Search: http://radiantcms.org/mailing-list/search/
>> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>>
>>
>
> _______________________________________________
> Radiant mailing list
> Post:   [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>

------------------------------------------------
Ryan Heneise
Art of Mission, Inc.
3720 Gattis School Rd #800 PMB 245
Round Rock, TX 78664

800-722-1492 (phone)

www.artofmission.com
[EMAIL PROTECTED]



_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to