설명
This plugin does not cache widgets automatically! You must define which widgets get cached.
Add a widget to the cache and designate which actions the cache gets flushed on.
$widget_cache = Voce_Widget_Cache::GetInstance();
$widget_cache->cache_widget( 'Archive_Links_Widget', array( 'save_post' ) );
$widget_cache->cache_widget( 'WP_Widget_Recent_Posts' );
설치
- Upload
voce-widget-cacheto the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
-
Usage:
$widget_cache = Voce_Widget_Cache::GetInstance();
$widget_cache->cache_widget( ‘Archive_Links_Widget’, array( ‘save_post’ ) );
$widget_cache->cache_widget( ‘WP_Widget_Recent_Posts’ );
FAQ
- I installed the plugin but nothing is happening
-
The caching is not automatic. Refer to the documentation to see how to implement caching on widgets.
- How can I verify my widgets are being cached?
-
You could use a plugin like WPDB Profiling
후기
이 플러그인에 대한 평가가 없습니다.
기여자 & 개발자
“Voce Widget Cache”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.
기여자변경이력
1.5.1
- Testing with WordPress 4.1
1.5
- Removing cache interaction on customizer preview
1.4.1
- Adding Capistrano deploy files
1.4
- Adding composer support
1.3
- Fix PHP Warning is widget array is not set.
1.2
- Hooks to clear a widget’s cache are now optional.
1.1
- Updated documentation.
1.0
- Initial version.
