| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html.old.2026-01-23/wp-content/plugins/independent-analytics/IAWP/AJAX/ |
Upload File : |
<?php
namespace IAWP\AJAX;
use IAWP\Overview\Modules\Module;
/** @internal */
class Refresh_Modules extends \IAWP\AJAX\AJAX
{
/**
* @inheritDoc
*/
protected function action_name() : string
{
return 'iawp_refresh_modules';
}
protected function requires_pro() : bool
{
return \true;
}
/**
* @inheritDoc
*/
protected function action_callback() : void
{
Module::queue_full_module_refresh();
$modules = \array_map(function (Module $module) {
return ['id' => $module->id(), 'html' => $module->get_module_html()];
}, Module::get_saved_modules());
\wp_send_json_success(['modulesRefreshedAt' => Module::last_refreshed_at(), 'modules' => $modules]);
}
}