Skip to content

Commit

Permalink
use prefix to clean cache instead
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardogomez97 committed Nov 9, 2023
1 parent 27faa55 commit a7beb7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doofinder-for-woocommerce/includes/class-landing.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public static function doomanager_clear_cache(WP_REST_Request $request) {
$landing = new $class();
$languages = $landing->language->get_languages();
foreach ($languages as $language) {
delete_transient(self::DF_LANDING_CACHE . "_" . $language['code']);
delete_transient(self::DF_LANDING_CACHE . "_" . $language['prefix']);
}
return new WP_REST_Response(
[
Expand Down

0 comments on commit a7beb7a

Please sign in to comment.