Changeset 2066393
- Timestamp:
- 04/10/2019 08:38:44 AM (7 years ago)
- Location:
- esselinknu-settings/trunk
- Files:
-
- 4 edited
-
esselink-nu-settings.php (modified) (1 diff)
-
includes/admin-settings.php (modified) (2 diffs)
-
includes/basic-settings.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
esselinknu-settings/trunk/esselink-nu-settings.php
r2005596 r2066393 4 4 * Plugin URI: http://www.esselink.nu 5 5 * Description: Settings plugin for customs configuration of Esselink.nu WP websites 6 * Version: 2.5 26 * Version: 2.53 7 7 * Author: Esselink.nu 8 8 * Author URI: http://www.esselink.nu 9 9 **/ 10 $esselink_nu_settings_verson = 2.5 2;10 $esselink_nu_settings_verson = 2.53; 11 11 12 12 // Block access to this file -
esselinknu-settings/trunk/includes/admin-settings.php
r1998936 r2066393 102 102 103 103 update_option( 'esselink_nu_settings_minify_html', checkBoolean($_POST['esselink_nu_settings_minify_html']), 'true' ); 104 update_option( 'esselink_nu_settings_remove_recaptcha', checkBoolean($_POST['esselink_nu_settings_remove_recaptcha']), 'true' ); 104 update_option( 'esselink_nu_settings_remove_recaptcha', checkBoolean($_POST['esselink_nu_settings_remove_recaptcha']), 'true' ); 105 update_option( 'esselink_nu_settings_remove_cache', checkBoolean($_POST['esselink_nu_settings_remove_cache']), 'true' ); 105 106 106 107 update_option( 'esselink_nu_settings_hsts_header', checkBoolean($_POST['esselink_nu_settings_hsts_header']), 'true' ); … … 327 328 </fieldset> 328 329 </td> 330 </tr> 331 <tr valign="top"> 332 <th scope="row"> 333 <label for="esselink_nu_settings_remove_cache">Auto clear cache folder weekly</label> 334 </th> 335 <td> 336 <fieldset> 337 <legend class="screen-reader-text"> 338 <span>Auto clear cache folder weekly</span> 339 </legend> 340 <label for="esselink_nu_settings_remove_cache"> 341 <input name="esselink_nu_settings_remove_cache" type="checkbox" <?= (get_option('esselink_nu_settings_remove_cache')=='true') ? "checked" : "" ?> id="esselink_nu_settings_remove_cache" value="true">Yes 342 </label> 343 </fieldset> 344 </td> 329 345 </tr> 330 346 </tbody> -
esselinknu-settings/trunk/includes/basic-settings.php
r1998936 r2066393 35 35 echo PHP_EOL . "<style>.grecaptcha-badge { display: none !important; }</style>" . PHP_EOL; 36 36 } 37 38 37 38 // Auto remove cache weekly 39 if(get_option('esselink_nu_settings_remove_cache') == false) 40 add_option( 'esselink_nu_settings_remove_cache', 'true', '', 'yes' ); 41 if(get_option('esselink_nu_settings_remove_cache') != false && get_option('esselink_nu_settings_remove_cache') == "true") 42 { 43 if (! wp_next_scheduled ( 'esselink_nu_settings_remove_cache_cronjob_event' )) { 44 wp_schedule_event(time(), 'weekly', 'esselink_nu_settings_remove_cache_cronjob_event'); 45 } 46 47 add_action('esselink_nu_settings_remove_cache_cronjob_event', 'esselink_nu_settings_optimze_cronjob_action'); 48 49 50 } else { 51 wp_clear_scheduled_hook('esselink_nu_settings_remove_cache_cronjob_event'); 52 } 53 54 function esselink_nu_settings_remove_cache_cronjob_action() 55 { 56 if (function_exists('w3tc_dbcache_flush')) { 57 w3tc_dbcache_flush(); 58 } 59 60 if (function_exists('w3tc_objectcache_flush')) { 61 w3tc_objectcache_flush(); 62 } 63 64 if (function_exists('w3tc_pgcache_flush')) { 65 w3tc_pgcache_flush(); 66 } 67 } 39 68 40 69 // Send email on update -
esselinknu-settings/trunk/readme.txt
r2005596 r2066393 3 3 Tags: esselink.nu,esselink 4 4 Requires at least: 4.0 5 Tested up to: 5. 05 Tested up to: 5.1 6 6 Stable tag: trunk 7 7 License: GPLv2 or later … … 124 124 = 2.52 = 125 125 * Active plug-in check fix 126 = 2.53 = 127 * Added weekly Cache cleanup cronjob 126 128 127 129 == Upgrade Notice ==
Note: See TracChangeset
for help on using the changeset viewer.