Linux 软件免费装
Banner图

Hoeboe

开发者 twicetwomedia
更新时间 2020年4月1日 10:39
捐献地址: 去捐款
PHP版本: 5.3 及以上
WordPress版本: 5.4
版权: GPLv3
版权网址: 版权信息

标签

caching cache page load ajax api page speed transients site speed

下载

0.1.1 0.1.2 0.1.3 0.1.4

详情介绍:

Easily update WordPress transients in the background via AJAX to increase site speed and avoid long page load times. Hoeboe can be especially helpful with caching of large external API calls or heavy internal database queries. If you've used the WordPress Transients API, you already know how useful it can be with caching, page load, and site speed. If you've used transients to store data from external API calls or from heavy internal database queries, then you also know a few of its limitations. Namely, page load can be negatively impacted on the user session where a large transient gets updated. Hoeboe helps to solve this problem of the one-off user who has to deal with potentially long page load while your site refreshes a transient in the background. With Hoeboe, you can choose to update those large transients in the background via AJAX. Your users won't notice anything different - other than possibly faster overall site speed.

安装:

Upload the Hoeboe plugin and activate Hoeboe within wp-admin settings. You'll then be ready to upgrade your WordPress transients. See the example below detailing how to use Hoeboe in your theme: Basic Implementation of a Transient ` $category, "posts_per_page" => $posts_per_page ) ); return $posts; } //Attempt to get transient $transient_name = "foo_featured_posts"; $featured = get_transient( $transient_name ); //Check for transient. If none, then execute WP_Query function if ( false === ( $featured ) ) { $category = "featured"; $posts_per_page = "5"; $featured = my_function_to_get_featured_posts($category, $posts_per_page); //Put the results of the query in a transient. Expire after 12 hours. $expiration_time = 12 * HOUR_IN_SECONDS; set_transient( "foo_featured_posts", $featured, $expiration_time ); } ?> **Using Hoeboe with that same Transient outlined above** $category, "posts_per_page" => $posts_per_page ) ); return $posts; } $transient_name = "foo_featured_posts"; $my_function_name = 'my_function_to_get_featured_posts'; $category = "featured"; $posts_per_page = "5"; $my_function_parameters = array($category, $posts_per_page); $transient_expire = 60; $expiration_time = 12 * HOUR_IN_SECONDS; if (class_exists('Hoeboe')) { $hoeboe = new Hoeboe(); $transient_value = $hoeboe->hoeboe__updatetransient($transient_name, $my_function_name, $my_function_parameters, $expiration_time); } ?> ` Links

常见问题:

Does Hoeboe replace WordPress transients?

No. Hoeboe works alongside the Transients API to help you cache data better and, ultimately, provide a better user experience for your site visitors.

If I activate Hoeboe, will it automatically affect all current WordPress transients that I use?

No. You must implement Hoeboe individually within your theme even after the Hoeboe plugin is activated. Hoeboe is set up this way so that you can pick and choose which transients to use Hoeboe on.

How do I implement Hoeboe on a transient?

Only a couple of simple steps. Visit the link below for more information. Detailed installation and implementation guide.

更新日志:

0.1.4 Release Date - Mar 31, 2020 0.1.3 Release Date - Mar 31, 2020 0.1.2 Release Date - Jul 23, 2019 0.1.1 Release Date - Dec 9, 2018 0.1.0 Release Date - Dec 1, 2018