Skip to content

Commit

Permalink
Merge pull request #14 from figuren-theater/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
carstingaxion authored May 25, 2023
2 parents d1c69c5 + 7b80fd4 commit 6639167
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
6 changes: 3 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions inc/wp-super-preload/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,9 @@ function __shedule_preload_on_cache_deletion( string $url, int $id, string $prel
$_calc = ( $_wp_next_scheduled < MINUTE_IN_SECONDS );
#error_log('$_wp_next_scheduled < MINUTE_IN_SECONDS '.var_export([$_calc],true));

// if ( $this->already_sheduled_preload )
if ( $_calc )
if ( $_calc && false !== $_wp_next_scheduled )
return;


// By the settings of 'cache-enabler'
// the whole site-cache gets deleted,
// when any post is updated.
Expand All @@ -316,8 +314,6 @@ function __shedule_preload_on_cache_deletion( string $url, int $id, string $prel
$hook_args
);

// $this->already_sheduled_preload = $_wp_schedule_event ;

#error_log('wp_clear_scheduled_hook:: '.$preload_handle.': '.var_export($_wp_clear_scheduled_hook,true));
#error_log('wp_schedule_event:: '.$preload_handle.': '.var_export($_wp_schedule_event,true));
}
Expand Down
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Plugin Name: figuren.theater | Performance
* Plugin URI: https://github.com/figuren-theater/ft-performance
* Description: Fast websites are more accessible, more sustainable and are giving a better UX. This is the code which accelerates figuren.theater and its WordPress Multisite Network.
* Version: 1.2.5
* Version: 1.2.6
* Requires at least: 6.0
* Requires PHP: 7.2
* Author: figuren.theater
Expand Down

0 comments on commit 6639167

Please sign in to comment.