ÿØÿà JFIF    ÿÛ „  ( %"1!%)+...383,7(-.+  -+++--++++---+-+-----+---------------+---+-++7-----ÿÀ  ß â" ÿÄ     ÿÄ H    !1AQaq"‘¡2B±ÁÑð#R“Ò Tbr‚²á3csƒ’ÂñDS¢³$CÿÄ   ÿÄ %  !1AQa"23‘ÿÚ   ? ôÿ ¨pŸªáÿ —åYõõ\?àÒü©ŠÄï¨pŸªáÿ —åYõõ\?àÓü©ŠÄá 0Ÿªáÿ Ÿå[úƒ ú®ði~TÁbqÐ8OÕpÿ ƒOò¤Oè`–RÂáœá™êi€ßÉ< FtŸI“öÌ8úDf´°å}“¾œ6  öFá°y¥jñÇh†ˆ¢ã/ÃÐ:ªcÈ "Y¡ðÑl>ÿ ”ÏËte:qž\oäŠe÷󲍷˜HT4&ÿ ÓÐü6ö®¿øþßèô Ÿ•7Ñi’•j|“ñì>b…þS?*Óôÿ ÓÐü*h¥£ír¶ü UãS炟[AÐaè[ûª•õ&õj?†Éö+EzP—WeÒírJFt ‘BŒ†Ï‡%#tE Øz ¥OÛ«!1›üä±Í™%ºÍãö]°î(–:@<‹ŒÊö×òÆt¦ãº+‡¦%ÌÁ²h´OƒJŒtMÜ>ÀÜÊw3Y´•牋4ǍýʏTì>œú=Íwhyë,¾Ôò×õ¿ßÊa»«þˆѪQ|%6ž™A õ%:øj<>É—ÿ Å_ˆCbõ¥š±ý¯Ýƒï…¶|RëócÍf溪“t.СøTÿ *Ä¿-{†çàczůŽ_–^XþŒ±miB[X±d 1,é”zEù»& î9gœf™9Ð'.;—™i}!ôšåîqêÛ٤ёý£½ÆA–àôe"A$˝Úsäÿ ÷Û #°xŸëí(l »ý3—¥5m! rt`†0~'j2(]S¦¦kv,ÚÇ l¦øJA£Šƒ J3E8ÙiŽ:cÉžúeZ°€¯\®kÖ(79«Ž:¯X”¾³Š&¡* ….‰Ž(ÜíŸ2¥ª‡×Hi²TF¤ò[¨íÈRëÉ䢍mgÑ.Ÿ<öäS0í„ǹÁU´f#Vß;Õ–…P@3ío<ä-±»Ž.L|kªÀê›fÂ6@»eu‚|ÓaÞÆŸ…¨ááå>åŠ?cKü6ùTÍÆ”†sĤÚ;H2RÚ†õ\Ö·Ÿn'¾ ñ#ºI¤Å´%çÁ­‚â7›‹qT3Iï¨ÖÚ5I7Ë!ÅOóŸ¶øÝñØôת¦$Tcö‘[«Ö³šÒ';Aþ ¸èíg A2Z"i¸vdÄ÷.iõ®§)¿]¤À†–‡É&ä{V¶iŽ”.Ó×Õÿ û?h¬Mt–íª[ÿ Ñÿ ÌV(í}=ibÔ¡›¥¢±b Lô¥‡piη_Z<‡z§èŒ)iÖwiÇ 2hÙ3·=’d÷8éŽ1¦¸c¤µ€7›7Ø ð\á)} ¹fËí›pAÃL%âc2 í§æQz¿;T8sæ°qø)QFMð‰XŒÂ±N¢aF¨…8¯!U  Z©RÊ ÖPVÄÀÍin™Ì-GˆªÅËŠ›•zË}º±ŽÍFò¹}Uw×#ä5B¤{î}Ð<ÙD é©¤&‡ïDbàÁôMÁ.query( $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s;", '\_transient\_%' . $version ) ); } } /** * Clear expired transients. * * @deprecated 1.33.4 Handled by WordPress since 4.9. */ public static function clear_expired_transients() { _deprecated_function( __METHOD__, '1.33.4', 'handled by WordPress core since 4.9' ); } /** * Maybe remove pending count transients * * When a supported post type status is updated, check if any cached count transients * need to be removed, and remove the * * @since 1.27.0 * * @param string $new_status New post status. * @param string $old_status Old post status. * @param WP_Post $post Post object. */ public static function maybe_clear_count_transients( $new_status, $old_status, $post ) { global $wpdb; /** * Get supported post types for count caching * * @since 1.27.0 * * @param array $post_types Post types that should be cached. * @param string $new_status New post status. * @param string $old_status Old post status. * @param WP_Post $post Post object. */ $post_types = apply_filters( 'wpjm_count_cache_supported_post_types', [ \WP_Job_Manager_Post_Types::PT_LISTING ], $new_status, $old_status, $post ); // Only proceed when statuses do not match, and post type is supported post type. if ( $new_status === $old_status || ! in_array( $post->post_type, $post_types, true ) ) { return; } /** * Get supported post statuses for count caching * * @since 1.27.0 * * @param array $post_statuses Post statuses that should be cached. * @param string $new_status New post status. * @param string $old_status Old post status. * @param WP_Post $post Post object. */ $valid_statuses = apply_filters( 'wpjm_count_cache_supported_statuses', [ 'pending' ], $new_status, $old_status, $post ); $rlike = []; // New status transient option name. if ( in_array( $new_status, $valid_statuses, true ) ) { $rlike[] = "^_transient_jm_{$new_status}_{$post->post_type}_count_user_"; } // Old status transient option name. if ( in_array( $old_status, $valid_statuses, true ) ) { $rlike[] = "^_transient_jm_{$old_status}_{$post->post_type}_count_user_"; } if ( empty( $rlike ) ) { return; } // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- Fetches dynamic list of cached counts. $transients = $wpdb->get_col( $wpdb->prepare( "SELECT option_name FROM $wpdb->options WHERE option_name RLIKE %s", implode( '|', $rlike ) ) ); // For each transient... foreach ( $transients as $transient ) { // Strip away the WordPress prefix in order to arrive at the transient key. $key = str_replace( '_transient_', '', $transient ); // Now that we have the key, use WordPress core to the delete the transient. delete_transient( $key ); } // Sometimes transients are not in the DB, so we have to do this too:. wp_cache_flush(); } /** * Get Listings Count from Cache * * @since 1.27.0 * * @param string $post_type * @param string $status * @param bool $force Force update cache. * * @return int */ public static function get_listings_count( $post_type = \WP_Job_Manager_Post_Types::PT_LISTING, $status = 'pending', $force = false ) { // Get user based cache transient. $user_id = get_current_user_id(); $transient = "jm_{$status}_{$post_type}_count_user_{$user_id}"; // Set listings_count value from cache if exists, otherwise set to 0 as default. $cached_count = get_transient( $transient ); $status_count = $cached_count ? $cached_count : 0; // $cached_count will be false if transient does not exist. if ( false === $cached_count || $force ) { $count_posts = wp_count_posts( $post_type, 'readable' ); // Default to 0 $status if object does not have a value. $status_count = isset( $count_posts->$status ) ? $count_posts->$status : 0; set_transient( $transient, $status_count, DAY_IN_SECONDS * 7 ); } return $status_count; } } WP_Job_Manager_Cache_Helper::init();