Page MenuHomePhorge

Fix relations state cache
ClosedPublic

Authored by machniak on Aug 14 2024, 11:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 27, 2:41 PM
Unknown Object (File)
Mon, Oct 21, 9:16 PM
Unknown Object (File)
Sat, Oct 19, 9:20 PM
Unknown Object (File)
Thu, Oct 17, 3:29 AM
Unknown Object (File)
Oct 7 2024, 3:53 AM
Unknown Object (File)
Oct 4 2024, 9:33 PM
Unknown Object (File)
Sep 20 2024, 6:14 AM
Unknown Object (File)
Aug 24 2024, 2:29 AM

Details

Summary

Fixes internal cache use that prevents redundant DB queries

Diff Detail

Repository
rS syncroton
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

machniak created this revision.
mollekopf added inline comments.
lib/kolab_sync_storage.php
1984

But this is supposed to remove all cache entries except the current one which identified by $synctime, so if $synctime and $row['synctime'] are different we would remove the current cache entry and instead leave the previous one, no? It may not matter because we just always get the latest.

lib/kolab_sync_storage.php
1976–1977

This copies the latest database entry into the current $synctime cache, so that seems to indeed make more sense than reusing the synctime of the previous database entry.

mollekopf added inline comments.
lib/kolab_sync_storage.php
1984

nevermind, "current" is not the new entry, but the one that latest that exists.

This revision is now accepted and ready to land.Aug 14 2024, 12:54 PM
This revision was automatically updated to reflect the committed changes.