Linux 软件免费装
Banner图

Plugin Name

开发者 WebsiteBakery
更新时间 2013年7月23日 04:22
捐献地址: 去捐款
PHP版本: 3.5.1 及以上
WordPress版本: 3.5.1
版权: GPL3 or later
版权网址: 版权信息

标签

calendar events database clean up tidy housekeeping

下载

1.0.3 1.2.0 1.2.1 1.2.2

详情介绍:

Developed to work with The Events Calendar 3.0, this plugin allows for expired events to be automatically vacuumed up rather than leaving them to clutter up your database. By default, the plugin schedules clean-up tasks to run once a day and limits itself to handling a maximum of 100 events at any one time. This can be adjusted programmatically for special cases. Can't get it to work? Check out the FAQs in the first instance and if that doesn't work feel free to post on the plugin support forum. Author This plugin was written by Barry Hughes (it is not an official plugin by Modern Tribe, so don't go pestering them for support). If this helps you out then buy the plugin author a beer! More than anything, it will make you feel good about yourself.

安装:

Like any other plugin you simply upload the plugin directory to the wp-content/plugins directory. You can also upload and install it through the WordPress plugins admin page. Remember that a prerequisite is the existence of The Events Calendar 2.0.9 (though the latest version targets The Events Calendar 3.0). Once installed and activated a new "Housekeeping" tab will appear on the Events > Settings page. You must enable garbage collection via this tab or it will not do anything.

屏幕截图:

  • The Housekeeping tab in Events > Settings

升级注意事项:

No major updates yet!

常见问题:

How do I enable garbage collection?

Visit Events > Settings > Housekeeping ... if you can't see this tab then make sure you have activated the plugin, first of all! Remember also that the current version of Housekeeper is built to work with The Events Calendar 3.0. If for example you are using a much older version then it may not work.

I have enabled garbage collection but nothing happens!

Assuming the expiry criteria is being met then this could be a problem where local loopbacks are not allowed within your hosting environment. Housekeeper relies on something called "Scheduled Tasks" so that it can work its magic in the background, as it were. However not all hosting environments are conducive to this. If you think that might be the problem then check in with your hosting provider and/or search for "alternative cron solutions".

How are recurring events handled?

Any instances of recurring events meeting the Expiry Criteria are deleted - those instances not meeting the criteria are preserved. This seemed like the most logical way to approach recurring events but any other ideas are welcome.

What if the wrong events are deleted?

That's completely possible for a variety of reasons. First of all, ensure your server and WordPress date/time settings are correct. Second, but more importantly, back-up before you use it and then keep on backing-up, frequently and often. You should be doing this anyway - and remember! - a back-up is useless unless you know how to restore it.

Are they trashed or deleted out-right?

They are deleted out right. So don't confuse this with the "Trash" function WordPress provides for pages, posts and many custom post types. With this plugin, any events deemed to have expired will effectively be wiped out forever.

Does an event expire after it has started or after it has ended?

In the eyes of this plugin an event has expired after it has started and this is flagged up in the settings tab. That may not always be ideal - and for those cases you can adjust the expiry criteria appropriately or just deactivate this plugin.

I found a bug

Please post details on the forum. Better yet, post a fix and add appropriate details. This is free and open source software and comes with no guarantees, so bear that in mind first of all.

I need help!

Feel free to post on the support forum, but remember that support is not guaranteed (nor is the plugin) ... after all, it's free.

更新日志:

1.2.2 1.2.1 1.2.0 1.0.3