Diff
Helper class that determines if a reindexing is needed.
The current and previous state of the filters is stored into a database option that contains a series of information.
The 2 options are then compared against eachother and when certain criterias are met, a re-index is required.
When a re-index is required, a notice in the WCF settings panel is displayed.
Table of Contents
- INDEX_CURRENT_STATE = 'wcf_filters_state'
- is_reindex_needed() : bool
- Determine if the reindex is needed.
- update_current_state() : void
- Update the state of the filters in the database.
Constants
INDEX_CURRENT_STATE
public
mixed
INDEX_CURRENT_STATE
= 'wcf_filters_state'
Methods
is_reindex_needed()
Determine if the reindex is needed.
public
static is_reindex_needed() : bool
Return values
bool —update_current_state()
Update the state of the filters in the database.
public
static update_current_state() : void