keycdn on "[Plugin: Cache Enabler - WordPress Cache] [Bug] About Clear Cache when using this plugin on multisite"

ساخت وبلاگ

I enabled this plugin for whole network, but I notice when I click Clear Cache button, it always clear whole network cache, even if I'm not in network admin page but in a blog admin page. And I can't get notice "The cache has been deleted." when I click Clear Cache button in a blog admin page.

I think it should be that: when user click Clear Cache button in a blog admin page, only clear the cache of this blog, and add notice for admin. when user click Clear Cache button in network admin page, clear whole network cache, and add notice for network admin.

I found this code in cache_enabler.class.php, line 700

if ( is_multisite() && is_plugin_active_for_network(CE_BASE) ) {
...

It is for clear whole network cache, it works, but I think it need change change the line 700 to this, so it solve all problem:

if ( is_multisite() && is_plugin_active_for_network(CE_BASE) && is_network_admin()) {
...

https://wordpress.org/plugins/cache-enabler/

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 53 تاريخ : چهارشنبه 8 ارديبهشت 1395 ساعت: 14:01