Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Automattic/batcache
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: uConnect/batcache
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 4 commits
  • 2 files changed
  • 2 contributors

Commits on Jan 25, 2021

  1. Copy the full SHA
    46e9ca8 View commit details
  2. Merge pull request #1 from uConnect/fix/array-offset-notice

    Fixed array offset access on value of type bool with PHP 7.4
    ParhamG authored Jan 25, 2021
    Copy the full SHA
    57ecada View commit details

Commits on Dec 7, 2024

  1. Copy the full SHA
    0bf8a8e View commit details
  2. Copy the full SHA
    9b9a02b View commit details
Showing with 3 additions and 3 deletions.
  1. +2 −2 advanced-cache.php
  2. +1 −1 composer.json
4 changes: 2 additions & 2 deletions advanced-cache.php
Original file line number Diff line number Diff line change
@@ -406,7 +406,7 @@ function set_query( $query_string ) {

wp_cache_init(); // Note: wp-settings.php calls wp_cache_init() which clobbers the object made here.

if ( ! is_object( $wp_object_cache ) )
if ( ! isset( $wp_object_cache ) || ! is_object( $wp_object_cache ) )
return;

// Now that the defaults are set, you might want to use different settings under certain conditions.
@@ -486,7 +486,7 @@ function set_query( $query_string ) {
$batcache->requests = wp_cache_incr($batcache->req_key, 1, $batcache->group);

if ( $batcache->requests >= $batcache->times &&
time() >= $batcache->cache['time'] + $batcache->cache['max_age']
( ! $is_cached || time() >= $batcache->cache['time'] + $batcache->cache['max_age'] )
) {
wp_cache_delete( $batcache->req_key, $batcache->group );
$batcache->do = true;
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -10,6 +10,6 @@
"source": "https://github.com/Automattic/batcache"
},
"require" : {
"composer/installers": "~1.0"
"composer/installers": "~1.0 || ~2.0"
}
}