Skip to content

Commit

Permalink
bump 20.10.03
Browse files Browse the repository at this point in the history
- Fixed nwdcx_optget() -> missing sql syntax.

bump 20.10.02

- Fixed output buffering issue with page caching.
  • Loading branch information
nawawi committed Nov 3, 2020
1 parent 2d5024f commit 13d84ff
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 10 deletions.
8 changes: 8 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
= 20.10.03 (2020-11-03)

- Fixed nwdcx_optget() -> missing sql syntax.

= v20.10.02 (2020-11-03)

- Fixed output buffering issue with page caching.

= v20.10.01 (2020-11-02)

- Improved precaching.
Expand Down
4 changes: 2 additions & 2 deletions docket-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* @wordpress-plugin
* Plugin Name: Docket Cache
* Plugin URI: https://wordpress.org/plugins/docket-cache/
* Version: 20.10.01
* VerPrev: 20.09.07
* Version: 20.10.03
* VerPrev: 20.10.02
* Description: A persistent object cache stored as a plain PHP code, accelerates caching with OPcache backend.
* GitHub Plugin URI: https://github.com/nawawi/docket-cache
* Author: Nawawi Jamili
Expand Down
2 changes: 1 addition & 1 deletion includes/compat.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function nwdcx_optget($key)

$suppress = $wpdb->suppress_errors(true);

$query = $wpdb->prepare('SELECT `option_value` `'.$wpdb->options.'` WHERE `option_name`=%s ORDER BY option_id ASC LIMIT 1', $key);
$query = $wpdb->prepare('SELECT option_value FROM `'.$wpdb->options.'` WHERE option_name=%s ORDER BY option_id ASC LIMIT 1', $key);
$option = $wpdb->get_var($query);
$cache[$key] = !empty($option) ? nwdcx_unserialize($option) : false;

Expand Down
2 changes: 1 addition & 1 deletion includes/object-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @wordpress-plugin
* Plugin Name: Docket Cache Drop-in
* Plugin URI: https://wordpress.org/plugins/docket-cache/
* Version: 20.10.01
* Version: 20.10.03
* Description: A persistent object cache stored as a plain PHP code, accelerates caching with OPcache backend.
* Author: Nawawi Jamili
* Author URI: https://docketcache.com
Expand Down
2 changes: 1 addition & 1 deletion includes/src/Crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

final class Crawler
{
private static $version = '20.10.01';
private static $version = '20.10.03';
public static $send_cookie = false;

private static function default_args($param = [])
Expand Down
4 changes: 2 additions & 2 deletions includes/src/Tweaks.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function () {
add_filter('x_redirect_by', '__return_false', PHP_INT_MAX);

// only if has page caching
if (\defined('WP_CACHE') && WP_CACHE) {
/*if (\defined('WP_CACHE') && WP_CACHE) {
add_action(
'after_setup_theme',
function () {
Expand Down Expand Up @@ -153,7 +153,7 @@ function () {
},
PHP_INT_MAX
);
}
}*/
}

public function pingback()
Expand Down
4 changes: 2 additions & 2 deletions languages/docket-cache.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the same license as the Docket Cache plugin.
msgid ""
msgstr ""
"Project-Id-Version: Docket Cache 20.10.01\n"
"Project-Id-Version: Docket Cache 20.10.03\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/docket-cache\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2020-11-02T15:12:07+00:00\n"
"POT-Creation-Date: 2020-11-03T14:23:09+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.4.0\n"
"X-Domain: docket-cache\n"
Expand Down
12 changes: 11 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Donate link: https://www.paypal.me/ghostbirdme/5usd
Requires at least: 5.4
Tested up to: 5.5
Requires PHP: 7.2.5
Stable tag: 20.10.01
Stable tag: 20.10.03
License: MIT
License URI: ./license.txt

Expand Down Expand Up @@ -143,6 +143,16 @@ Yes, you can. It can boost more your WordPress performance since there is no net
Kindly do manually remove wp-content/object-cache.php and wp-content/cache/docket-cache if an error occurs during updates. Thanks.

== Changelog ==
= 20.10.03 =

- Fixed nwdcx_optget() -> missing sql syntax.

Thanks to Mark Barnes (@mark8barnes) for reporting this issue.

= 20.10.02 =

- Fixed output buffering issue with page caching.

= 20.10.01 =

This is Major Release based on previous releases.
Expand Down

0 comments on commit 13d84ff

Please sign in to comment.