Skip to content

Commit

Permalink
bump 20.10.05
Browse files Browse the repository at this point in the history
- Fixed Litespeed Cache admin notice "Purged all caches successfully" still shown after dismiss.
  • Loading branch information
nawawi committed Nov 14, 2020
1 parent b9df4b8 commit 1e02f69
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 12 deletions.
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
= 20.10.05 (2020-11-15)

- Fixed Litespeed Cache admin notice "Purged all caches successfully" still shown after dismiss.

= 20.10.04 (2020-11-11)

- Improved CronAgent.
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.04
* VerPrev: 20.10.03
* Version: 20.10.05
* VerPrev: 20.10.04
* 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
19 changes: 19 additions & 0 deletions includes/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -1267,11 +1267,30 @@ function ($alloptions) {
unset($alloptions['cron']);
}

if (isset($alloptions['litespeed_messages'])) {
unset($alloptions['litespeed_messages']);
}

if (isset($alloptions['litespeed.admin_display.messages'])) {
unset($alloptions['litespeed.admin_display.messages']);
}

return $alloptions;
},
PHP_INT_MAX
);

// litespeed admin notice
add_action(
'litespeed_purged_all',
function () {
$this->delete('alloptions', 'options');
$this->delete('litespeed_messages', 'options');
$this->delete('litespeed.admin_display.messages', 'options');
},
PHP_INT_MAX
);

foreach (['added', 'updated', 'deleted'] as $prefix) {
add_action(
$prefix.'_option',
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.04
* Version: 20.10.05
* 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: 2 additions & 0 deletions includes/src/Constans.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ public function register_default()
'options:uninstall_plugins',
'options:active_plugins',
'options:cron',
'options:litespeed_messages',
'options:litespeed.admin_display.messages',
]
);

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.04';
private static $version = '20.10.05';
public static $send_cookie = false;

private static function default_args($param = [])
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.04\n"
"Project-Id-Version: Docket Cache 20.10.05\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-10T16:29:21+00:00\n"
"POT-Creation-Date: 2020-11-14T17:32:18+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
39 changes: 33 additions & 6 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Donate link: https://www.patreon.com/bePatron?u=41796862
Requires at least: 5.4
Tested up to: 5.5
Requires PHP: 7.2.5
Stable tag: 20.10.04
Stable tag: 20.10.05
License: MIT
License URI: ./license.txt

Expand Down Expand Up @@ -41,6 +41,7 @@ The Docket Cache is better because it converts the object cache into plain PHP c
- Object Cache + OPcache Stats
- Cache Log
- Cronbot Service
- WP-CLI support
- Multisite support
- Multi-Network support

Expand All @@ -52,18 +53,37 @@ To use Docket Cache requires minimum:
- WordPress 5.4
- Zend OPcache

== Configuration Options ==
== Documentation ==

To adjust the configuration, please refer to [Configuration](https://docs.docketcache.com/configuration) documentation for details.
To adjust the plugin behaviour, installation or manage through a command line, please refer to the [Documentation](https://docs.docketcache.com) for details.

== WP-CLI Commands ==
== Sponsor this project ==

To use the WP-CLI commands, please refer to [WP-CLI](https://docs.docketcache.com/wp-cli) documentation for available commands
There is a lot of room for improvement and features to add, require plenty of person-hours dedicated for testing and development.

[Become our sponsor](https://www.patreon.com/bePatron?u=41796862). All funds will be dedicated to maintenance, development, and marketing of this project.

Thank you for using Docket Cache.

== Development ==
- [Report issues](https://github.com/nawawi/docket-cache/issues)
- [Changelog](https://raw.githubusercontent.com/nawawi/docket-cache/master/changelog.txt)
- [Documentation](https://docs.docketcache.com)

== Hosting Provider ==

The Docket Cache has been reported seemly works with these hosting provider:

- [GB Network](https://www.gbnetwork.my/)
- [Dreamhost](https://docketcache.com/wordpress-hosting/dreamhost)
- [Bluehost](https://docketcache.com/wordpress-hosting/bluehost)
- [Exabytes](https://docketcache.com/wordpress-hosting/exabytes)
- [ServerFreak](https://docketcache.com/wordpress-hosting/serverfreak)
- [Zenpipe](https://www.zenpipe.com/)
- [Cun Host](https://cunhost.com/)
- [KelateBiz](https://kelate.biz/)
- [JimatHosting](https://jimathosting.com/)
- [iWHOST](https://www.iwhost.com/)
- [Hostinger](https://www.hostinger.com/)

== Installation ==
To use Docket Cache require minimum PHP 7.2.5, WordPress 5.4 and Zend OPcache for best performance.
Expand Down Expand Up @@ -104,6 +124,9 @@ OPcache is a caching engine built into PHP, improves performance by storing prec

Docket Cache converts the object cache into plain PHP code. When read and write cache, it will use OPcache directly which results in faster data retrieval and better performance.

= What is the Cronbot Service in Docket Cache? =
The Cronbot is an external service that pings your website every hour to keep WordPress Cron running actively. This service offered as an alternative option and is not compulsory to use. By default, this service not connected to the [end-point server](https://cronbot.docketcache.com/). You can completely disable it at the configuration page.

= What is a RAM disk in Docket Cache? =
A RAM disk is a representation of a hard disk using RAM resources, and it can take the form of a hardware device or a virtual disk.

Expand Down Expand Up @@ -142,6 +165,10 @@ 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.05 =

- Fixed Litespeed Cache admin notice "Purged all caches successfully" still shown after dismiss.

= 20.10.04 =

- Improved CronAgent.
Expand Down

0 comments on commit 1e02f69

Please sign in to comment.