MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / SetCachedTag

Function SetCachedTag

src/TexturePack.c:425–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425CC_NOINLINE static void SetCachedTag(const cc_string* url, struct StringsBuffer* list,
426 const cc_string* data, const char* file) {
427 cc_string key; char keyBuffer[STRING_INT_CHARS];
428 if (!data->length) return;
429
430 String_InitArray(key, keyBuffer);
431 HashUrl(&key, url);
432 EntryList_Set(list, &key, data, ' ');
433 EntryList_Save(list, file);
434}
435
436/* Updates cached data, ETag, and Last-Modified for the given URL */
437static void UpdateCache(struct HttpRequest* req) {

Callers 1

UpdateCacheFunction · 0.85

Calls 3

HashUrlFunction · 0.85
EntryList_SetFunction · 0.85
EntryList_SaveFunction · 0.85

Tested by

no test coverage detected