PluginProbe ʕ •ᴥ•ʔ
Aruba HiSpeed Cache / 2.0.13
Aruba HiSpeed Cache v2.0.13
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
Events 2 years ago Purger 2 years ago AHSC_Check.php 1 year ago AHSC_Config.php 1 year ago AHSC_Functions.php 1 year ago AHSC_Static.php 1 year ago AHSC_Version.php 2 years ago AHSC_Warmer.php 2 years ago index.php 2 years ago
AHSC_Config.php
114 lines
1 <?php
2 const AHSC_CORE = array(
3 'plugin_name' => 'aruba-hispeed-cache',
4 'debug'=>WP_DEBUG
5 );
6 $file=realpath(dirname(__FILE__)."/..")."/".AHSC_CORE['plugin_name'].".php";
7
8 define( "AHSC_REQUIREMENTS", array(
9 'minimum_php' => '5.6',
10 'minimum_wp' => '5.4',
11 'is_legacy_pre_59' => version_compare(get_bloginfo('version'), '5.8.22', '<='),
12 'is_legacy_post_61' => version_compare(get_bloginfo('version'), '6.1.0', '>=')
13 ) );
14
15 const AHSC_CHECKER = array(
16 'transient_name' => 'ahsc_activation_check',
17 'transient_life_time' => 15 * MINUTE_IN_SECONDS,
18 'request_timeout' => 15,
19 );
20
21 const AHSC_OPTIONS_LIST = array(
22 'ahsc_enable_purge' => true,
23 'ahsc_purge_homepage_on_edit' => true,
24 'ahsc_purge_homepage_on_del' => true,
25 'ahsc_purge_archive_on_edit' => true,
26 'ahsc_purge_archive_on_del' => true,
27 'ahsc_purge_archive_on_new_comment' => true, // non utilizzata
28 'ahsc_purge_archive_on_deleted_comment' => true, // non utilizzata
29 'ahsc_purge_page_on_mod' => true,
30 'ahsc_purge_page_on_new_comment' => true,
31 'ahsc_purge_page_on_deleted_comment' => true,
32 'ahsc_cache_warmer' =>true,
33 'ahsc_static_cache'=>true,
34 );
35
36 define( "AHSC_CONSTANT", array(
37 'ARUBA_HISPEED_CACHE_VERSION' => '2.0.13',
38 'ARUBA_HISPEED_CACHE_PLUGIN' => true,
39 'ARUBA_HISPEED_CACHE_FILE' => $file,
40 'ARUBA_HISPEED_CACHE_BASEPATH' => \plugin_dir_path( $file ),
41 'ARUBA_HISPEED_CACHE_BASEURL' => \plugin_dir_url( $file ),
42 'ARUBA_HISPEED_CACHE_BASENAME' => \plugin_basename( $file ),
43 'ARUBA_HISPEED_CACHE_OPTIONS_NAME' => 'aruba_hispeed_cache_options',
44 'HOME_URL' => \get_home_url( null, '/' ),
45 'ARUBA_HISPEED_CACHE_OPTIONS' => (get_site_option( 'aruba_hispeed_cache_options' ))?get_site_option( 'aruba_hispeed_cache_options' ):AHSC_OPTIONS_LIST,
46 ) );
47
48
49 const AHSC_OPTIONS_LIST_DEFAULT = array(
50 'ahsc_enable_purge' => array('default'=>true),
51 'ahsc_purge_homepage_on_edit' => array('default'=>true),
52 'ahsc_purge_homepage_on_del' => array('default'=>true),
53 'ahsc_purge_archive_on_edit' => array('default'=>true),
54 'ahsc_purge_archive_on_del' => array('default'=>true),
55 'ahsc_purge_archive_on_new_comment' => array('default'=>true), // non utilizzata
56 'ahsc_purge_archive_on_deleted_comment' => array('default'=>true), // non utilizzata
57 'ahsc_purge_page_on_mod' => array('default'=>true),
58 'ahsc_purge_page_on_new_comment' => array('default'=>true),
59 'ahsc_purge_page_on_deleted_comment' => array('default'=>true),
60 'ahsc_cache_warmer' => array('default'=>true),
61 'ahsc_static_cache' => array('default'=>true)
62 );
63
64
65
66 const AHSC_PURGER = array(
67 'server_host' => '127.0.0.1',
68 'server_port' => '8889',
69 'time_out' => 5,
70 );
71
72 define( "AHSC_AJAX", array(
73 'security_error' => array(
74 'code' => 404,
75 'message' => __( 'An error occurred. Please try again later or contact support.', 'aruba-hispeed-cache' ),
76 'type' => 'error',
77 ),
78 'success' => array(
79 'code' => 200,
80 'message' => __( 'Cache purged.', 'aruba-hispeed-cache' ),
81 'type' => 'success',
82 ),
83 'warning' => array(
84 'code' => 202,
85 'message' => __( 'An error occurred. Please try again later or contact support.', 'aruba-hispeed-cache' ),
86 'type' => 'warning',
87 ),
88 ) );
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 );