const char *type;
/* for each specified cache type, delete the URL */
- while ((type = ap_cache_tokstr(r->pool, next, &next))) {
- cache_run_remove_url(type, url);
+ while(next) {
+ type = ap_cache_tokstr(r->pool, next, &next);
+ cache_run_remove_url(type, url);
}
return OK;
}
* The specific entity referenced by the cache_handle is removed
* from the cache, and the cache_handle is closed.
*/
+/* XXX Don't think we need to pass in request_rec or types ... */
int cache_remove_entity(request_rec *r, const char *types, cache_handle *h)
{
- const char *next = types;
- const char *type;
-
- while (next) {
- type = ap_cache_tokstr(r->pool, next, &next);
- }
+ h->remove_entity(h);
return 1;
}
ap_log_error(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r->server,
"cache: response is not cachable");
- /* remove this object from the cache */
+ /* remove this object from the cache
+ * BillS Asks.. Why do we need to make this call to remove_url?
+ * leave it in for now..
+ */
cache_remove_url(r, cache->types, url);
/* remove this filter from the chain */