Add (or make sure it's working properly) cache for CAPS (#274)
Closed
wojciech.kapcia@tigase.net opened 4 years ago

It would be good to have cache for CAPS to avoid doing excessive queries.

For example every startup I get flood of similar queries:

<!--   2020-08-19T16:40:21Z   >>>>   -->
<iq type='get' id='2D51F0BB-86A4-419A-A0B2-451654922EA3' to='travis@burtrum.org/Conversations.tIlu'>
<query node='http://conversations.im#zcIke+Rk13ah4d1pwDG7bEZsVwA=' xmlns='http://jabber.org/protocol/disco#info'/>
</iq>

<!--   2020-08-19T16:40:21Z   >>>>   -->
<iq type='get' id='9EA303F5-CC2E-48E2-A242-01BA0BE1C764' to='winfried@tilanus.com/Conversations.yi27'>
<query xmlns='http://jabber.org/protocol/disco#info' node='http://conversations.im#zcIke+Rk13ah4d1pwDG7bEZsVwA='/>
</iq>

<!--   2020-08-19T16:40:21Z   >>>>   -->
<iq type='get' id='04BF75D4-A93D-4EF9-AD90-9F28B4EFDC3D' to='tigase@muc.tigase.org/vapormontey'>
<query xmlns='http://jabber.org/protocol/disco#info' node='http://conversations.im#zcIke+Rk13ah4d1pwDG7bEZsVwA='/>
</iq>

<!--   2020-08-19T16:40:21Z   >>>>   -->
<iq id='5C9D33BF-8FA9-4F66-8ADE-86102B79D21E' type='get' to='tigase@muc.tigase.org/riccio'>
<query xmlns='http://jabber.org/protocol/disco#info' node='http://conversations.im#KWQQsqlerqQGIyKLIQTBsn7Adho='/>
</iq>

<!--   2020-08-19T16:40:21Z   >>>>   -->
<iq id='C25C3AF1-3459-49A5-9B9D-3885C4557EE7' to='tigase@muc.tigase.org/ivucica' type='get'>
<query xmlns='http://jabber.org/protocol/disco#info' node='http://conversations.im#KWQQsqlerqQGIyKLIQTBsn7Adho='/>
</iq>
Andrzej Wójcik (Tigase) commented 4 years ago

The issue was caused by an error in TigaseSwift library which caused Beagle to cache data and check if entries are cached but ignore those cached entries and requery CAPS every time.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Version
4.0
Spent time
2h 30m
Issue Votes (0)
Watchers (0)
Reference
tigase/_clients/beagle-im#274
Please wait...
Page is in error, reload to recover