Skip to content

Commit

Permalink
Always refresh assets in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
zlateska committed Nov 4, 2024
1 parent 9220229 commit 53bf0b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/CSSUtilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function conditional_refresh_assets() {
$last_refresh = get_option( 'nfd_utilities_last_refresh_time', 0 );
$current_time = time();

if ( ( $current_time - $last_refresh ) > DAY_IN_SECONDS ) {
if ( ( $current_time - $last_refresh ) > DAY_IN_SECONDS || ( defined( 'NFD_DATA_WB_DEV_MODE' ) && constant( 'NFD_DATA_WB_DEV_MODE' ) ) ) {
$this->refresh_assets();
update_option( 'nfd_utilities_last_refresh_time', $current_time );
}
Expand Down

0 comments on commit 53bf0b0

Please sign in to comment.