Releases: acdh-oeaw/arche-diss-cache
Releases · acdh-oeaw/arche-diss-cache
Cache removal API added
acdhOeaw\arche\lib\dissCache\CacheInterface::delete(string $keyLike): void
- low-level cache pruning (not meant for direct use)acdhOeaw\arche\lib\dissCache\ResponseCache::pruneCacheForResource(string $resId): void
- delete cache records for a resource with a given idacdhOeaw\arche\lib\dissCache\Service\serveRequest(string $id, array $param, bool $clearCache = false): ResponseCacheItem)
- the$clearCache
parameter added clearing the cache for a resource with a given$id
before serving the request
Caching improvements
- Cache error responses if the exception is instance of the
acdhOeaw\arche\lib\dissCache\ServiceException
- Cache response using canonical resource URI for the cache key generation (assures reuse of response cache if different resource ids are used)
Preserve resource metadata changes made by the cache miss handler
Cache resource after response is generated This preserves resource metadata changes done by the handler
Allow choosing cache db id
0.7.0 Service::serveRequest(): allow choosing cache database id
ResponseCacheItem::send(): add gzip compression option
0.6.0 ResponseCacheItem::send(): add gzip compression option
Service::processException() added
0.5.0 Service::processException() extracted as a public method allowing reuse
Service class added
0.4.0 Service::setCallback() introduced
RepoWrapperGuzzle can now throw UnauthorizedException
0.3.0 RepoWrapperGuzzle: recognize 401 Unauthorized and throw a correspondi…
ResponseCacheItem::send() method added
0.2.0 ResponseCacheItem::send() method added
RepoResourceCacheItem::serialize(): include whole metadata graph
0.1.3 RepoResourceCacheItem::serialize(): include whole metadata graph