Bug with plugin cache
-
Hi,
My theme is generating the sidebar twice on each page, one for desktop and one for mobile. This plugin looses its wrapper when generated twice on 1 page.
Here is the object view from inspector. Note that widgets above and below have a wrapper but comments-widget-plus has no wrapper and is missing the header too.
<div class="sss-sidebar-wrapper std-tag-target" style="width: 100%; max-width: 300px;" id="sss-sidebar-source-div-1">
<div id="text-2" class="widget widget_text">
<div id="text-3" class="widget widget_text">
<ul class="cwp-ul ">
<div id="text-5" class="widget widget_text">
<div id="archives-3" class="widget widget_archive">
I discovered that this is an issue with the plugin cache, but I didn’t have time to dig deeper and understand the exact issue.
I fixed it by clearing the cache on each instance of the plugin.
widget.php
function widget( $args, $instance ) {
wp_cache_delete( 'cwp_widget', 'widget' );
extract( $args );
Can you please fix this bug and re-release?
Thanks so much for a great plugin.
Rob
- The topic ‘Bug with plugin cache’ is closed to new replies.