Making WordPress.org

Changeset 12828


Ignore:
Timestamp:
08/10/2023 06:03:28 AM (2 years ago)
Author:
dd32
Message:

API: Translations: Cache the right thing, fixes a typo in r12827.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/translations/lib.php

    r12827 r12828  
    321321        $languages = wp_cache_get( $cache_key, $cache_group, false, $found );
    322322        if ( $found ) {
    323             apcu_store( "{$cache_group}:{$cache_key}", $translated_languages, $apcu_cache_time );
     323            apcu_store( "{$cache_group}:{$cache_key}", $languages, $apcu_cache_time );
    324324        }
    325325    }
     
    337337
    338338        apcu_store( "{$cache_group}:{$cache_key}", $languages, $apcu_cache_time );
    339         wp_cache_add( $cache_key, $translated_languages, $cache_group, $cache_time );
     339        wp_cache_add( $cache_key, $languages, $cache_group, $cache_time );
    340340    }
    341341
Note: See TracChangeset for help on using the changeset viewer.