WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. yitwail
    Member
    Posted 5 months 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 5 months 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 5 months ago #

    that's a good workaround, thanks

  4. kmitteldorf
    Member
    Posted 4 months 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. sswells
    Member
    Plugin Author

    Posted 4 months ago #

    No, settings aren't deleted.

  6. Chris Dillon
    Member
    Posted 2 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic