MIA suggestions data should be cached as a real array, not text
This commit is contained in:
parent
62d4b5e395
commit
163af89ab3
|
@ -153,7 +153,7 @@ class WC_Marketplace_Suggestions {
|
|||
}
|
||||
|
||||
// Cache empty suggestions data to reduce requests if there are any issues with API.
|
||||
set_transient( 'wc_marketplace_suggestions', '[]', DAY_IN_SECONDS );
|
||||
set_transient( 'wc_marketplace_suggestions', array(), DAY_IN_SECONDS );
|
||||
return array();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue