The "Store data in a custom cache type" code example does NOT indicate the unit of time for the TTL argument
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 55/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- php
- Domain
- documentation
Research direction
Open the linked custom cache type topic and inspect the code example containing the 86400 TTL argument. Check the underlying Magento cache implementation to establish the time unit; done means the example explicitly states the unit and provides guidance for determining it when needed.
Written by the indexing model from the issue text.
Description
Is there an existing issue for this?
- I have searched the existing issues
Which topic?
https://developer.adobe.com/commerce/php/development/cache/partial/cache-type/
What's wrong with the content?
The code example given for saving data in a custom cache type does not indicate the unit of time the TTL argument.
This is the example:
$cacheKey = \VendorName\ModuleName\Model\Cache\Type\CacheType::TYPE_IDENTIFIER;
$cacheTag = \VendorName\ModuleName\Model\Cache\Type\CacheType::CACHE_TAG;
$storeData = $this->cache->save(
$this->serializer->serialize($cacheData),
$cacheKey,
[$cacheTag],
86400
);
Is 86400 in seconds? In minutes? etc
The underlying magento code itself also does not indicate the unit of time.
What changes do you propose?
Update the code example to explicitly state what unit of time magento is using, or if that's not easily discernible then at least provide explanations and guidance on how to find out.
It's important to know the unit of time.
Anything else that can help to cover this?
No response
- Dominant language
- JavaScript
- Stars
- 11
- Forks
- 178
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 2
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AdobeDocs/commerce-php
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AdobeDocs/commerce-php#457 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
AdobeDocs/commerce-php#313 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
AdobeDocs/commerce-php#234 ·
-
Issue in /src/pages/development/components/api-concepts.mdMay be free again @pawan claimed this 202 days ago, and no pull request is open. Open
AdobeDocs/commerce-php#432 · 5 comments · 1 assignee ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
AdobeDocs/commerce-php#392 ·
All issues in AdobeDocs/commerce-php
Similar issues
-
factory-active factory-automatic harness/codex task-bug-reproduction-success task-identify-harness-labels-done task-identify-issue-type-done
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
vercel/ai#21582 · 3 comments ·
Maintainers usually reply within 1 day
-
ux
Difficulty 1/5 Under an hour Newbie friendliness 90/100
rr-djk/rr-djuikoo.com#53 ·
Maintainers usually reply within 1 day
-
new spec review
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
w3c/browser-specs#2666 · 1 comment ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
thim81/openapi-format#238 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
decentespresso/dye2#13 ·