31 lines
757 B
PHP
31 lines
757 B
PHP
<?php
|
|
/**
|
|
* @package Regular Labs Library
|
|
* @version 24.11.1459
|
|
*
|
|
* @author Peter van Westen <info@regularlabs.com>
|
|
* @link https://regularlabs.com
|
|
* @copyright Copyright © 2024 Regular Labs All Rights Reserved
|
|
* @license GNU General Public License version 2 or later
|
|
*/
|
|
|
|
defined('_JEXEC') or die;
|
|
|
|
use Joomla\CMS\Factory as JFactory;
|
|
|
|
if ( ! class_exists('RegularLabsInstallerScript'))
|
|
{
|
|
class RegularLabsInstallerScript
|
|
{
|
|
public function postflight($install_type, $adapter)
|
|
{
|
|
if ( ! in_array($install_type, ['install', 'update']))
|
|
{
|
|
return true;
|
|
}
|
|
|
|
JFactory::getCache()->clean('_system');
|
|
}
|
|
}
|
|
}
|