0

I have some older custom Joomla! code that I need to refactor for Joomla!4.

The start() and end() methods that are used for caching have been removed in Joomla!4.

How can I amend my code to maintain functionality?

My current code:

$cache = Factory::getCache('com_mycomponent', 'output');
$cache->setLifeTime($this->params->get('cache_time', 180));
$hash = md5(serialize($this->params));

$cache->start("display.{$me->userid}.{$hash}", 'mod_latestthings');

$this->_display();

if (isset($cache))
{
    $cache->end();
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.