Widget Cache – Reduce the Number of SQL Queries

The Widget Cache feature is available in the premium version. You can reduce the number of sql queries with this feature.

When “Cache System” is enabled, the page is saved as a static html file, thus PHP and MySQL does not work for the page which has been cached. MySQL and PHP work to generate the html of the other pages which have not been cached yet.

Every time before the cache is created, the same widgets are generated again and again. This feature avoids generating the widgets again and again to reduce the sql queries.

Exclude a Widget

You can exclude any widget which you don’t want to be cache.

Update a Widget

If you update a widget, the widget cache folder which is /wp-content/cache/wpfc-widget-cache/ is deleted.

Clear Widget Cache

We did not add this feature not to confuse. You can clear the widget cache with two ways;

1. if you clear cache, the widget cache is cleared as well
2. if you update a widget, the widget cache is cleared

Number of DB Queries

If you wanna see the the number of database queries during the WordPress execution, you should add the following line into the footer.php of theme file.