Products Cache

List cached product data from pricestest.products_cache table.

HTTP: GET /external-data/products-cache

Query parameters

NameTypeRequiredDescriptionExample
limitintegernoMaximum number of rows per page (default 50).50
pageintegerno1-indexed page when using limit.1
offsetintegernoExplicit offset. Overrides page when supplied.0
domainstringnoFilter cached products for a specific domain.example-shop.cz
product_idstringnoFilter by product ID (supports partial matching).PROD123
age_hoursintegernoShow only cache entries newer than specified hours.24
sortstringnoSort column (cache_date, domain, product_id).cache_date
directionstringnoSort direction (asc, desc).desc

Notes

Sample request

curl -H "Authorization: ApiKey YOUR_API_KEY" "https://admin.elpricing.com/api/external-data/products-cache?limit=20&domain=example-shop.cz&sort=cache_date&direction=desc"

Interactive call

Queue workflow

Tasks are persisted to var/api_queue/tasks.json. Process them with:

php go.php cron:list\nphp go.php cron:go

Logs are written to var/api_queue/logs/{task_id}.log.