schranz/psr6-symfony-http-cache-store-analyser

Analyse what URL and Tags are stored in toflar/psr6-symfony-http-cache-store HTTP Cache store.

dev-main 2022-10-17 13:07 UTC

This package is auto-updated.

Last update: 2024-11-17 17:44:49 UTC


README

Analyse what URL and Tags are stored in toflar/psr6-symfony-http-cache-store HTTP Cache store.

Usage

composer require schranz/psr6-symfony-http-cache-store-analyser

Copy your http_cache directory into var directory so its available under var/http_cache/@.

Run the analyser:

vendor/bin/analyse var/http_cache

Output is something like this:

URL: https://example.org/
CACHE-CONTROL: max-age=240, public, s-maxage=86400
EXPIRES: Sat, 15 Oct 2022 21:56:32 GMT
X-REVERSE-PROXY-TTL: 86400
FOS-SMAXAGE-BACKUP: 240
TAGS (2): media-1,page-2
QUERIES (4):
 -
 - ?utm_campaign=some&utm_content=content&utm_medium=newsletter&utm_source=anysource
 - ?page=1
 - ?page=2
 
------------------------------------------------------------------------------------------------

URL: https://example.org/other
CACHE-CONTROL: max-age=240, public, s-maxage=86400
EXPIRES: Sat, 15 Oct 2022 21:56:32 GMT
X-REVERSE-PROXY-TTL: 86400
FOS-SMAXAGE-BACKUP: 240
TAGS (1): media-2
QUERIES (1):
 -

It is also possible to filter out a specific url only:

vendor/bin/analyse var/http_cache https://example.org/other

For a single url its also possible to get the raw unmarshalled ata via which shows you all headers and other infos:

vendor/bin/analyse var/http_cache https://example.org/other --raw