Cron fix
-
I had to add the following to functions.php in order to process permalinks in Korean language:
add_filter( 'c3_invalidation_items', function( $items ) {
return array_map( function( $path ) {
$wildcard = '';
if ( str_ends_with( $path, '*' ) ) {
$wildcard = '*';
$path = rtrim( $path, '*' );
}
$segments = explode( '/', $path );
$segments = array_map( function( $seg ) {
return rawurlencode( rawurldecode( $seg ) );
}, $segments );
return implode( '/', $segments ) . $wildcard;
}, $items );
} );
You must be logged in to reply to this topic.