PluginProbe ʕ •ᴥ•ʔ
Aruba HiSpeed Cache / 3.0.15
Aruba HiSpeed Cache v3.0.15
3.0.15 3.0.14 3.0.13 1.2.4 1.2.5 1.2.6 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.15 2.0.16 2.0.17 2.0.18 2.0.19 2.0.20 2.0.21 2.0.22 2.0.23 2.0.24 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0.0 3.0.1 3.0.10 3.0.11 3.0.12 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3
aruba-hispeed-cache / src / AHSC_Config.php
aruba-hispeed-cache / src Last commit date
APC 3 days ago Events 3 days ago Purger 3 days ago assets 3 days ago AHSC_Apc.php 3 days ago AHSC_Check.php 3 days ago AHSC_Config.php 3 days ago AHSC_Dboptimization.php 3 days ago AHSC_Functions.php 3 days ago AHSC_HtmlOptimizer.php 5 months ago AHSC_Lazyload.php 3 days ago AHSC_Preconnect.php 5 months ago AHSC_Static.php 4 months ago AHSC_Version.php 5 months ago AHSC_Warmer.php 3 days ago AHSC_XmlRPC.php 5 months ago index.php 5 months ago
AHSC_Config.php
114 lines
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit;
4 }
5 const AHSC_CORE = array(
6 'plugin_name' => 'aruba-hispeed-cache',
7 'debug'=>WP_DEBUG
8 );
9 //var_dump(AHSC_CORE);
10
11 $ahsc_file=dirname(__DIR__)."/".AHSC_CORE['plugin_name'].".php";
12
13 define( "AHSC_REQUIREMENTS", array(
14 'minimum_php' => '7.4',
15 'minimum_wp' => '6.2',
16 ) );
17
18 const AHSC_CHECKER = array(
19 'transient_name' => 'ahsc_activation_check',
20 'transient_life_time' => 15 * MINUTE_IN_SECONDS,
21 'request_timeout' => 15,
22 );
23
24 const AHSC_OPTIONS_LIST = array(
25 'ahsc_enable_purge' => true,
26 'ahsc_purge_homepage_on_edit' => true,
27 'ahsc_purge_homepage_on_del' => true,
28 'ahsc_purge_archive_on_edit' => true,
29 'ahsc_purge_archive_on_del' => true,
30 'ahsc_purge_archive_on_new_comment' => true, // non utilizzata
31 'ahsc_purge_archive_on_deleted_comment' => true, // non utilizzata
32 'ahsc_purge_page_on_mod' => true,
33 'ahsc_purge_page_on_new_comment' => true,
34 'ahsc_purge_page_on_deleted_comment' => true,
35 'ahsc_cache_warmer' =>true,
36 'ahsc_static_cache'=>true,
37 'ahsc_apc'=>false,
38 'ahsc_lazy_load'=>true,
39 'ahsc_html_optimizer'=>false,
40 'ahsc_dns_preconnect'=>false,
41 'ahsc_dns_preconnect_domains'=>'',
42 'ahsc_xmlrpc_status'=>true,
43 'ahsc_enable_cron'=>true,
44 'ahsc_cron_status'=>false,
45 'ahsc_cron_time'=>"300",
46
47 );
48
49 define( "AHSC_CONSTANT", array(
50 'ARUBA_HISPEED_CACHE_VERSION' => AHSC_get_version(),
51 'ARUBA_HISPEED_CACHE_PLUGIN' => true,
52 'ARUBA_HISPEED_CACHE_FILE' => $ahsc_file,
53 'ARUBA_HISPEED_CACHE_BASEPATH' => \plugin_dir_path( $ahsc_file ),
54 'ARUBA_HISPEED_CACHE_BASEURL' => \plugin_dir_url( $ahsc_file ),
55 'ARUBA_HISPEED_CACHE_BASENAME' => \plugin_basename( $ahsc_file ),
56 'ARUBA_HISPEED_CACHE_OPTIONS_NAME' => 'aruba_hispeed_cache_options',
57 'HOME_URL' => \get_home_url( null, '/' ),
58 'ARUBA_HISPEED_CACHE_OPTIONS' => get_site_option( 'aruba_hispeed_cache_options' ) ?: AHSC_OPTIONS_LIST,
59 ) );
60
61 const AHSC_OPTIONS_LIST_DEFAULT = array(
62 'ahsc_enable_purge' => array('default'=>true),
63 'ahsc_purge_homepage_on_edit' => array('default'=>true),
64 'ahsc_purge_homepage_on_del' => array('default'=>true),
65 'ahsc_purge_archive_on_edit' => array('default'=>true),
66 'ahsc_purge_archive_on_del' => array('default'=>true),
67 'ahsc_purge_archive_on_new_comment' => array('default'=>true), // non utilizzata
68 'ahsc_purge_archive_on_deleted_comment' => array('default'=>true), // non utilizzata
69 'ahsc_purge_page_on_mod' => array('default'=>true),
70 'ahsc_purge_page_on_new_comment' => array('default'=>true),
71 'ahsc_purge_page_on_deleted_comment' => array('default'=>true),
72 'ahsc_cache_warmer' => array('default'=>true),
73 'ahsc_static_cache' => array('default'=>true),
74 'ahsc_apc' => array('default'=>false),
75 'ahsc_lazy_load'=>array('default'=>false),
76 'ahsc_html_optimizer'=>array('default'=>false),
77 'ahsc_dns_preconnect' => array('default'=>false),
78 'ahsc_dns_preconnect_domains'=>array('default'=>''),
79 'ahsc_xmlrpc_status'=>array('default'=>true),
80 'ahsc_enable_cron'=>array('default'=>true),
81 'ahsc_cron_status'=>array('default'=>false),
82 'ahsc_cron_time'=>array('default'=>"300")
83 );
84
85 const AHSC_PURGER = array(
86 'server_host' => '127.0.0.1',
87 'server_port' => '8889',
88 'time_out' => 5,
89 );
90 const AHSC_LOCALIZE_LINK = array(
91 'link_base' => array(
92 'it' => 'https://hosting.aruba.it/',
93 'en' => 'https://hosting.aruba.it/en/',
94 'es' => 'https://hosting.aruba.it/es/',
95 ),
96 'link_guide' => array(
97 'it' => 'https://guide.hosting.aruba.it/hosting/cache-manager/gestione-cache.aspx',
98 ),
99 'link_assistance' => array(
100 'it' => 'https://assistenza.aruba.it/home.aspx',
101 'en' => 'https://assistenza.aruba.it/en/home.aspx',
102 'es' => 'https://assistenza.aruba.it/es/home.aspx',
103 ),
104 'link_hosting_truck' => array(
105 'it' => 'https://hosting.aruba.it/home.aspx?utm_source=pannello-wp&utm_medium=error-bar&utm_campain=aruba-hispeed-cache',
106 'en' => 'https://hosting.aruba.it/en/home.aspx?utm_source=pannello-wp&utm_medium=error-bar&utm_campain=aruba-hispeed-cache',
107 'es' => 'https://hosting.aruba.it/es/home.aspx?utm_source=pannello-wp&utm_medium=error-bar&utm_campain=aruba-hispeed-cache',
108 ),
109 'link_aruba_pca' => array(
110 'it' => 'https://admin.aruba.it/PannelloAdmin/Login.aspx?Lang=it',
111 'en' => 'https://admin.aruba.it/PannelloAdmin/login.aspx?Op=ChangeLanguage&Lang=EN',
112 'es' => 'https://admin.aruba.it/PannelloAdmin/login.aspx?Op=ChangeLanguage&Lang=ES',
113 ),
114 );