WordPress.org

Forums

Display Widgets
Transient should be purged when new pages are added (6 posts)

  1. yitwail
    Member
    Posted 1 year ago #

    After updating the plugin, I discovered that newly added pages do not show up in the list of pages. I had to use phpmyadmin to delete _transient_dw_details from wp_options.

    Please flush the transient when pages are added, or else provide an option to do so in the plugin settings perhaps. It's inconvenient using phpymyadmin, or waiting one week for the transient to expire.
    -----------------------------------------
    PS: I looked at the plugin code, and I see this line:
    add_action('save_post_page', array(&$this, 'delete_transient'));

    This *should* delete the transient when a new page is created, but for some reason it's not.

    https://wordpress.org/plugins/display-widgets/

  2. gtredwell
    Member
    Posted 1 year ago #

    I was having the same problem- obviously ideally the plugin code should be corrected, but for a quick fix I found that just deactivating then activating the plugin made the newly added pages show up in the list.

  3. yitwail
    Member
    Posted 1 year ago #

    that's a good workaround, thanks

  4. kmitteldorf
    Member
    Posted 1 year ago #

    This sounds tempting, but . . .

    I have many widgets on many pages. If I deactivate and then reactivate, will I lose all of my settings? In other words, will I need to re-select which widgets appear on which pages?

  5. Steph Wells
    Member
    Plugin Author

    Posted 1 year ago #

    No, settings aren't deleted.

  6. Chris Dillon
    Member
    Posted 1 year ago #

    See this thread if you would like to help track down this problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Display Widgets
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic