Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AD0-E716 topic 1 question 25 discussion

Actual exam question from Adobe's AD0-E716
Question #: 25
Topic #: 1
[All AD0-E716 Questions]

An Adobe Commerce developer is tasked with creating a custom block that will be displayed on every page in the footer of the site.
After completing and optimizing the development, the developer notices that the block takes too much time to be generated on each page and decides to store it in the system cache after enabling it for all cache groups.
What would be the minimum requirement to achieve this?

  • A. Set a value for the cache_lifetime data property of the block.
  • B. Set a value for cache_key data property of the block.
  • C. Set values for both cache_lifetime and cache_key data properties of the block.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
arierave
1 month ago
Selected Answer: C
C is correct according to claude.ai epos
upvoted 1 times
...
falcofemoralis
1 month, 2 weeks ago
Selected Answer: A
according to the code setting a value for the cache_lifetime should be enough protected function _saveCache($data) { if (!$this->getCacheLifetime() || !$this->_cacheState->isEnabled(self::CACHE_GROUP)) { return false; } $cacheKey = $this->getCacheKey(); $this->_cache->save($data, $cacheKey, array_unique($this->getCacheTags()), $this->getCacheLifetime()); return $this; }
upvoted 1 times
...
some_gyy
3 months, 2 weeks ago
Selected Answer: A
I think lifetime is the only option required
upvoted 2 times
...
JasonZhuo
4 months, 2 weeks ago
I choose B
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...