is anyone else getting these warnings? anyway to fix?
PHP Warning: flock() expects parameter 1 to be resource, boolean given in /mysite.com/web/content/wp-content/plugins/wp-widget-cache/inc/wcache.class.php on line 291
]]>Hi all,
I use a rockettheme template on WordPress 4.0.
I try to use the WP Widget Cache plugin to optimize some parts of the pages (calls to external URLs).
When i click the “Save” button of a widget, all items from WP Widget Cache (cache duration, …) of the widget disappear.
And when i analyze the network activity of a page, the widget is not cached : calls are still done.
Do you have any idea ?
Thanks a lot !
Denis.
I’m running W3 Total Cache, NextGEN Gallery and Easy FancyBox and this plugin breaks the fancy box effects from both plugins. I’ve also noticed that this plugin breaks the black wordpress menu bar on the site…
I’m happy to deactivate this but I thought it would be good to share…
]]>Mi site https://www.lospaziobianco.it is made on AlYoum theme forest theme https://themeforest.net/item/alyoum-retina-magazine-blog-wordpress-theme/3925878
When activate they break home page before half content where are authors images.
It’s possibile to know why and find a way to make it compatible?
]]>i’m using latest version of plugin …can you please give advice on how to fix these errors?
[06-Mar-2014 13:22:08 UTC] PHP Warning: flock() expects parameter 1 to be resource, boolean given in /wp-content/plugins/wp-widget-cache/inc/wcache.class.php on line 291
[06-Mar-2014 17:41:47 UTC] PHP Warning: filemtime() [function.filemtime]: stat failed for /server/wp-content/widget-cache/mysite.com/6e2d012a87bd69e58b13107dfba35839/aaf4f24559de99cc0bd5843057d8da34 in /server/web/content/wp-content/plugins/wp-widget-cache/inc/wcache.class.php on line 315
]]>Hi, i used always preload with wp super cache, i ask or this plugin is useless for me… i think this plugin is useless when preload option is enabled in wp super cache. I not sure, who know?
]]>Is it possible to flush the cache when a menu is changed? I am using this plugin to cache a widget that displays 5 different menus (saves approx 30 queries), but I would like to clear the cache when a menu is saved.
Can this be added to the list of items that clears the cache for each widget, or is there a line of code that I can add to my functions.php to clear the plugin cache on menu update?
]]>When using the widget cache, I get the english version of the widgets, is there a way to inherit the current language?
]]>Hi, first of all: Nice work! It’s great!
I just have some small troubles: some widgets even don’t appear after enabling the plugin and some widgets are broken (html is not correct).
can anyone help describe to me how to solve these errors please?
theres a bunch like this every day
[01-Aug-2013 20:56:03 UTC] PHP Warning: filemtime() [function.filemtime]: stat failed for /myserverroot/mywebsite.com/web/content/wp-content/widget-cache/mysite.com/6e2d012a87bd69e58b13107dfba35839/aaf4f24559de99cc0bd5843057d8da34 in /myserverroot/mywebsite.com/web/content/wp-content/plugins/wp-widget-cache/inc/wcache.class.php on line 42
[01-Aug-2013 20:56:39 UTC] PHP Warning: fopen(/myserverroot/mywebsite.com/web/content/wp-content/widget-cache/mysite.com/6e2d012a87bd69e58b13107dfba35839/aaf4f24559de99cc0bd5843057d8da34) [function.fopen]: failed to open stream: No such file or directory in /myserverroot/mywebsite.com/web/content/wp-content/plugins/wp-widget-cache/inc/wcache.class.php on line 133
[01-Aug-2013 20:56:39 UTC] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /myserverroot/mywebsite.com/web/content/wp-content/plugins/wp-widget-cache/inc/wcache.class.php on line 139
]]>Would it be possible to add browser caching?
https://www.ads-software.com/extend/plugins/wp-widget-cache/
]]>Yesterday I happened to check the /wp-content/widget-cache directory and I found HUNDREDS of subdirectories for sites I had never heard of and many of which looked very sketchy (porn sites, etc.). I deleted all the directories and let the plugin recreate my local site sub-directory, and this morning I’m already seeing more unfamiliar directories in there:
199.19.78.238/
1f2a5db3d9b3a7df3345a4d43503bd4c/
3bce3dd074f899d0e919ac4e9dfc1856/
47330dff55c0c55ba8b1c2e222ce2158/
63e21ec33b54094d2325990a8b3e6c05/
999487ad80449975e0b0975c8e17032a/
bestallgoods.com/
d4f2a0259bbc380dc61e7130a25b00f6/
pop.sc****t.com/
sc****t.com/
sc****t.com./
sc****t.com:80/
https://www.lcg.org/
The ones that start with “sc” are my site. I’ve obfuscated the directory name for security reasons.
Why, and how, are other directories for other sites being created in the widget-cache directory? This is VERY disconcerting.
https://www.ads-software.com/extend/plugins/wp-widget-cache/
]]>WARNING: wp-includes/functions.php:928 - Cannot modify header information - headers already sent by (output started at /wp-content/plugins/wp-widget-cache/widget-cache.php:77)
WARNING: wp-includes/functions.php:930 - Cannot modify header information - headers already sent by (output started at /wp-content/plugins/wp-widget-cache/widget-cache.php:77)
WARNING: wp-includes/functions.php:3710 - Cannot modify header information - headers already sent by (output started at /wp-content/plugins/wp-widget-cache/widget-cache.php:77)
WARNING: wp-includes/class-wp.php:382 - Cannot modify header information - headers already sent by (output started at /wp-content/plugins/wp-widget-cache/widget-cache.php:77)
WARNING: wp-includes/class-wp.php:385 - Cannot modify header information - headers already sent by (output started at /wp-content/plugins/wp-widget-cache/widget-cache.php:77)
WARNING: wp-includes/functions.php:888 - Cannot modify header information - headers already sent by (output started at /wp-content/plugins/wp-widget-cache/widget-cache.php:77)
WARNING: wp-admin/admin-header.php:9 - Cannot modify header information - headers already sent by (output started at /wp-content/plugins/wp-widget-cache/widget-cache.php:77)
https://www.ads-software.com/extend/plugins/wp-widget-cache/
]]>I am using a plugin to log deprecated calls and I am getting the following for Widget Cache
Argument in add_options_page()
Used in wp-content/plugins/wp-widget-cache/widget-cache.php on line 129.
Deprecated in version 2.0.
Use Roles and Capabilities not user levels
https://www.ads-software.com/extend/plugins/wp-widget-cache/
]]>I have enabled debug to test my site for problems and I am getting the following error on the backend
Notice: Undefined index: wgdel in /wp-content/plugins/wp-widget-cache/widget-cache.php on line 77
https://www.ads-software.com/extend/plugins/wp-widget-cache/
]]>Just activated on WP 3.5 for testing with my own theme. Got the Undefined index error for a lot of pieces of code. I changed the theme folder to /themename for showing here.
Notice: Undefined index: wgc_disabled in /themename/wp-content/plugins/wp-widget-cache/widget-cache.php on line 108 Notice: Undefined index: wgc_ae_ops_disabled in /themename/wp-content/plugins/wp-widget-cache/widget-cache.php on line 109 Notice: Undefined index: wgc_vary_by_params_enabled in /themename/wp-content/plugins/wp-widget-cache/widget-cache.php on line 110 Notice: Undefined index: wgdel in /themename/wp-content/plugins/wp-widget-cache/widget-cache.php on line 77
https://www.ads-software.com/extend/plugins/wp-widget-cache/
]]>I had enabled WP_DEBUG to sniff out a problem with a different plug-in, and I got a PHP “Notice” log message from your plug-in.
Notice: Undefined index: vmenuwidget-2 in /home/user/folder/wp-content/plugins/wp-widget-cache/widget-cache.php on line 509
Line 509 looks like this:
$wc_value=intval($wc_options[$id]);
It just needs an ISSET() before like this:
if ( isset( $wc_options[$id] ) )
{
$wc_value=intval($wc_options[$id]);
} else { $wc_value = 0; }
Just a quick fix for you. ??
https://www.ads-software.com/extend/plugins/wp-widget-cache/
]]>I using Quick cache
but I’d to know Widget cache compatible with quick cache ?
https://www.ads-software.com/extend/plugins/wp-widget-cache/
]]>Since upgrading from WP 3.4.2, I see the following error message at the top of admin pages:
Deprecated: Assigning the return value of new by reference is deprecated in C:[edited local path]\wp-content\plugins\wp-widget-cache\widget-cache.php on line 529
This is on a XAMPP local dev environment hence the Windows path structure.
]]>Can Widget Cache be made compatible with the native calendar widget?
https://en.support.wordpress.com/widgets/calendar-widget/
I just tested it on date archives, and when cycling back to earlier months the calendar stays stuck on the current month instead of reflecting the selected month.
https://www.ads-software.com/extend/plugins/wp-widget-cache/
]]>Hi, I am so disappointed. I love this plugin but I am unable to get it to function with WooThemes Commerce Login/Logout Widget.
It’s a strange issue. The plugin works fine on every page of the site except for the Front/Home Page.
When I deactivate/reactivate I get two different results. One is that after logging in, and I navigate back to home/front page..it shows not logged in, and this affects another bookmarking widget.
The other, I cannot get the front page to show logged out.
Any Ideas?
Thanks
Will
https://www.ads-software.com/extend/plugins/wp-widget-cache/
]]>Hi,
This is a great plug-in! But currently it breaks the functionality of the ‘Display Widgets’ plug-in (to hide or show certain widgets on certain pages). It would be nice if support for this plug-in could be added or if similar functionality could be added.
Thank you!
Greetings,
Tom
https://www.ads-software.com/extend/plugins/wp-widget-cache/
]]>Where is the changelog?
https://www.ads-software.com/extend/plugins/wp-widget-cache/
]]>By default WP Widget Cache marks the beginning and end of each widget it cached, along with configured cache life and widget name. This is great for debugging but might be too much information for production. Here is a patch to make it optional.
--- widget-cache.php.org2 2012-10-09 19:09:09.000000000 +0600
+++ widget-cache.php 2012-10-10 13:24:20.000000000 +0600
@@ -27,6 +27,7 @@
var $wgcEnabled=true;
var $wgcAutoExpireEnabled=true;
var $wgcVaryParamsEnabled=false;
+ var $wgcDisableHtmlComments=false;
var $triggerActions=array();
var $varyParams=array();
@@ -51,6 +52,7 @@
$this->wgcEnabled= !($this->wgcSettings["wgc_disabled"]==="1");
$this->wgcAutoExpireEnabled= !($this->wgcSettings["wgc_ae_ops_disabled"]==="1");
$this->wgcVaryParamsEnabled= $this->wgcSettings["wgc_vary_by_params_enabled"]=="1";
+ $this->wgcDisableHtmlComments= $this->wgcSettings["wgc_disable_html_comments"]=="1";
if($this->wgcEnabled)
{
@@ -139,6 +141,7 @@
"wgc_disabled" => $_POST['wgc_enabled']? false:"1",
"wgc_ae_ops_disabled" => $_POST['wgc_ae_ops_enabled']? false:"1",
"wgc_vary_by_params_enabled" => $_POST['wgc_vary_by_params_enabled'],
+ "wgc_disable_html_comments" => $_POST['wgc_disable_html_comments'],
);
$this->wgc_update_option("widget_cache_settings",$wp_settings);
echo '<div id="message" class="updated fade"><p>Options Updated</p></div>';
@@ -175,6 +178,12 @@
<label for=wgc_vary_by_params_enabled><strong>Enable vary by params options (e.g. Vary by user levels, user agents)</strong> </label>
</td>
</tr>
+ <tr valign="top">
+ <td>
+ <input name="wgc_disable_html_comments" type="checkbox" id="wgc_disable_html_comments" value="1" <?php checked('1', ($wp_settings["wgc_disable_html_comments"]=="1")); ?> />
+ <label for=wgc_disable_html_comments><strong>Disable the HTML comments this plugin adds by default to the page source</strong> </label>
+ </td>
+ </tr>
</table>
<p class="submit">
<input type="submit" name="wp_wgc_load_default" value="Reset to Default Options »" class="button" onclick="return confirm('Are you sure to reset options?')" />
@@ -428,7 +437,9 @@
function widget_cache_getcache($id, $cachetime)
{
- echo "<!-- WP Widget Cached $id For $cachetime second(s)-->\n";
+ if ( ! $this->wgcDisableHtmlComments ) {
+ echo "<!-- WP Widget Cached $id For $cachetime second(s)-->\n";
+ }
return false;
}
@@ -501,13 +512,17 @@
if ($wc_value>0)
{
- echo "<!--$this->plugin_name $this->plugin_version ($this->plugin_uri) Begin -->\n";
+ if ( ! $this->wgcDisableHtmlComments ) {
+ echo "<!--$this->plugin_name $this->plugin_version ($this->plugin_uri) Begin -->\n";
+ }
while ($this->wcache->save( (function_exists('pll_current_language') ? pll_current_language() : "") . $this->get_widget_cache_key($id), $wc_value, array(), $id) || ($this->widget_cache_getcache($id, $wc_value) && false ) )
{
call_user_func_array($callback, $params);
}
- echo "<!--$this->plugin_name End -->\n";
+ if ( ! $this->wgcDisableHtmlComments ) {
+ echo "<!--$this->plugin_name End -->\n";
+ }
}
else
{
https://www.ads-software.com/extend/plugins/wp-widget-cache/
]]>Same as suggested in this thread by DSmidge, adjusted for polylang
https://www.ads-software.com/support/topic/plugin-wp-widget-cache-feature-request-support-for-qtranslate?replies=4
--- widget-cache.php.org 2012-10-09 18:36:17.000000000 +0600
+++ widget-cache.php 2012-10-09 18:38:55.000000000 +0600
@@ -503,7 +503,7 @@
{
echo "<!--$this->plugin_name $this->plugin_version ($this->plugin_uri) Begin -->\n";
- while($this->wcache->save($this->get_widget_cache_key($id), $wc_value, array(), $id) || ($this->widget_cache_getcache($id, $wc_value) && false))
+ while ($this->wcache->save( pll_current_language() . $this->get_widget_cache_key($id), $wc_value, array(), $id) || ($this->widget_cache_getcache($id, $wc_value) && false ) )
{
call_user_func_array($callback, $params);
}
https://www.ads-software.com/extend/plugins/wp-widget-cache/
]]>I ghave widgets listing cvustom posts.
Does toe auto expire option for posts apply to them?
Agnes
https://www.ads-software.com/extend/plugins/wp-widget-cache/
]]>Will it begin caching without setting in each widget or do I have to open each widget to set the expiration time? I would like to install in Multisite which has 300 sites and it would be a lot quicker to just install.
After setting the expiration time and saving the widget, how can I change the setting? The settings screen disappears after saving.
https://www.ads-software.com/extend/plugins/wp-widget-cache/
]]>It seems to work with WP 3.3.1. Sidebar widgets display in Chrome and Firefox, BUT with a BIG BUT, in IE 8 and IE 9 sidebars do not display. I have to disable it because of this issue; which is pitty as it seems to help with other browsers (FireFox and Chrome.).
https://www.ads-software.com/extend/plugins/wp-widget-cache/
]]>Just installed Wp widget cache and not sure that it is working. I’ve checked my source code and <!–WP Widget Cache End –> does not show up.
I did add the code <!– <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. –> to my footer as instructed on the FAQ page, but still nothing.
Any suggestions?
https://www.ads-software.com/extend/plugins/wp-widget-cache/
]]>Does it make sense to activate Widget Cache when I already have DB Cache Reloaded working?
I did and it all works well, still benchmarking the speed gains (if any) but would like to get your insights.
Cheers!
https://www.ads-software.com/extend/plugins/wp-widget-cache/
]]>