jcorry / jcorry/gootranslate

Implement Caching

Open
#2 1 comment 0 reactions 1 assignee Claimed by @jcorry View on GitHub
enhancement
Dominant language
PHP
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Before calling the API, check the cache for a translated value for this string

cache keys can look like
`md5($string . $targetLanguage)`

Cache it forever...not like a string's translation to another language is going to expire, right?

Probably best to make enabling this a configurable option, there are probably some contexts where you wouldn't want to fill the cache with translations of things...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.