polylang / dynamo

Improves the WordPress translations performance
GNU General Public License v2.0
6 stars 1 forks source link

Cache the empty string translation to avoid a test for every translations #14

Closed Chouby closed 2 years ago

Chouby commented 2 years ago

When using external cache we used to check for an empty string for each translate() call. It should be more efficient to store the translation in the cache and avoid this test, as already done for dynamic translations.