Quantcast
Channel:
Viewing all articles
Browse latest Browse all 4235

Re: partial caching issue with LastEdited

$
0
0

I guess List(MyImage).Max(LastEdited) will force SS to search all 'MyImage' objects in database and get the lastest LastEdited field value as part of the cache key.

The problem is: MyPage and MyImage is a many-many relation. The LastEdited field will not work because the image itself is not edited. the image is linked to another page. we just built a new link.

I guess I have to write a function to find out all the related images of the sub page and work out a key, and pass that function to SS template

class MySubPage {
static $many_many = array('Images' =>'MyImage')
}

}


Posted to: partial caching issue with LastEdited | Show Thread | Post Reply


Viewing all articles
Browse latest Browse all 4235

Trending Articles