Re: [viewvc-users] Query view is too cache happy?

"C. Michael Pilato" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Organization CollabNet, Inc.
Message-ID <4A2FF23E.1020600__26536.475637886$1244656201$gmane$org@collab.net>
John Beranek wrote:
> C. Michael Pilato wrote:
>> John Beranek wrote:
>>> Using ViewVC 1.1.1 on a Subversion repository, I was just utterly 
>>> baffled by returned query results, until I realised the results were 
>>> just (erroneously) cached.
> 
>> I see this code in view_query():
>>
>>   # if we got any results, use the newest commit as the modification time
>>   if mod_time >= 0:
>>     if check_freshness(request, mod_time):
>>       return
>>
>> mod_time is supposed to be the timestamp of the most recent commit returned
>> in the commit results.  You said the repos had changed since earlier in the
>> day, but would those specific query results have returned some of the newer
>> stuff?
> 
> Argh, mea culpa! I think I'm suffering from a case of far too many test 
> repositories, and too many tabs in Firefox opened to different views of 
> these repositories in ViewVC.
> 
> Adding to that I was doing queries of a repository while the query 
> database was still building, which would have created false positive 
> caching too I think.
> 
> (In particular, I was doing 'svndbupdate update /my/repos' in the 
> background, but then did a new commit. This was then the latest date 
> returned in the results, and therefore the "last modified date". So, 
> when I redid the query to attempt to find the new results that were 
> being adding to the database by the big 'svndbupdate update' command I 
> didn't see anything, and got confused.
> 
> There, as clear as mud.
> 
> I just did a new commit in this repository and the caching worked 
> flawlessly.
> 
>   Sorry to have bothered you.

'Twas no bother at all.  I've not done much around the caching code myself,
so it was a welcome opportunity to dig around just a little bit to see how
the query view interacted with caches.

-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2361024

To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkov8j4ACgkQokEGqRcG/W7M5QCdFo+YgEMzWTnAB4ol0+XXN3qe
zHEAnAtlBW5KuRqHB5Gb7/lsp8LL9jnm
=iYwm
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.