| 1753 | } |
| 1754 | |
| 1755 | Storage::Cache::Key DocumentData::cacheKey() const { |
| 1756 | if (hasWebLocation()) { |
| 1757 | return Data::WebDocumentCacheKey(_urlLocation); |
| 1758 | } else if (!_access && !_url.isEmpty()) { |
| 1759 | return Data::UrlCacheKey(_url); |
| 1760 | } else { |
| 1761 | return Data::DocumentCacheKey(_dc, id); |
| 1762 | } |
| 1763 | } |
| 1764 | |
| 1765 | uint8 DocumentData::cacheTag() const { |
| 1766 | if (type == StickerDocument) { |
no test coverage detected