Title: Bug with plugin cache
Last modified: August 30, 2016

---

# Bug with plugin cache

 *  [rperrett](https://wordpress.org/support/users/rperrett/)
 * (@rperrett)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/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
 * [https://wordpress.org/plugins/comments-widget-plus/](https://wordpress.org/plugins/comments-widget-plus/)

Viewing 1 replies (of 1 total)

 *  [mdotk](https://wordpress.org/support/users/mdotk/)
 * (@mdotk)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/bug-with-plugin-cache/#post-6896904)
 * My CSS for the widget is messed up too. Only fixed when I clear W3 cache.

Viewing 1 replies (of 1 total)

The topic ‘Bug with plugin cache’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/comments-widget-plus_0065bd.svg)
 * [Recent Comments Widget Plus](https://wordpress.org/plugins/comments-widget-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/comments-widget-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/comments-widget-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/comments-widget-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/comments-widget-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/comments-widget-plus/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [mdotk](https://wordpress.org/support/users/mdotk/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/bug-with-plugin-cache/#post-6896904)
 * Status: not resolved