summaryrefslogtreecommitdiff
path: root/content/llcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/llcache.c')
-rw-r--r--content/llcache.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/content/llcache.c b/content/llcache.c
index a6ef49370..2d8472b0c 100644
--- a/content/llcache.c
+++ b/content/llcache.c
@@ -398,6 +398,17 @@ nserror llcache_handle_force_stream(llcache_handle *handle)
}
/* See llcache.h for documentation */
+nserror llcache_handle_invalidate_cache_data(llcache_handle *handle)
+{
+ if (handle->object != NULL && handle->object->fetch.fetch == NULL) {
+ memset(&handle->object->cache, 0,
+ sizeof(llcache_cache_control));
+ }
+
+ return NSERROR_OK;
+}
+
+/* See llcache.h for documentation */
const char *llcache_handle_get_url(const llcache_handle *handle)
{
return handle->object != NULL ? handle->object->url : NULL;