Clarification on cache delete
Permalink
I am looking at the docs (http://www.concrete5.org/documentation/developers/system/caching/) and wondering what this does, as the explanation is somewhat lacking.
Does this delete all cache items for the type largeRecordsList?
Does this delete anything with the id of false and the type largeRecordsList from the cache?
I am caching a number of stats on a per user basis so I have done this.
I then want to be able to remove all the stats for a user like so, although this delete operation does not delete the cache for the user. The cache still returns.
Cache::delete('largeRecordsList', false);
Does this delete all cache items for the type largeRecordsList?
Does this delete anything with the id of false and the type largeRecordsList from the cache?
I am caching a number of stats on a per user basis so I have done this.
Cache::set("stat" . $uID, "some_md5_token", $data);
I then want to be able to remove all the stats for a user like so, although this delete operation does not delete the cache for the user. The cache still returns.
Cache::delete("stat" . $uID, false);