WP Manifestindependent plugin directory
manifest / i18n / translations-cache

Translations Cache WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

WordPress mu-plugin to reduces file reads for translations by caching the first read via APCu.

★ 6stars
2.0.0latest · 1 year ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/wearerequired/translations-cache/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Simple WordPress must-use plugin to reduce file reads for gettext (.mo) and JavaScript (.json) translations by caching the first read via APCu.

By default the cache TTL is set to six hours without any automated cache invalidation. You can set the TRANSLATIONS_CACHE_KEY_SALT environment variable to change the key for the cache which will force the plugin to read from a fresh cache entry.

Installation

  1. Define the dropin path for wordpress-muplugin
    composer config --json --merge extra.dropin-paths '{ "wordpress/content/mu-plugins/": [ "type:wordpress-muplugin" ] }'
  2. Install koodimonni/composer-dropin-installer and wearerequired/translations-cache
    composer require koodimonni/composer-dropin-installer wearerequired/translations-cache

Example of a composer.json for a site:

{
  "name": "wearerequired/something",
  "require": {
    "koodimonni/composer-dropin-installer": "^1.0",
    "wearerequired/translations-cache": "^1.0"
  },
  "extra": {
    "dropin-paths": {
      "wordpress/content/mu-plugins/": [
        "type:wordpress-muplugin"
      ]
    }
  }
}


a required open source product - let's get in touch

Releases

4 releases.

Tag
Published
2.0.0 latest
Nov 19, 2024 1 year ago
Mar 13, 2023 3 years ago
Jan 31, 2023 3 years ago
Jan 3, 2023 3 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

Translations Cache 2.0.0 · audited by WP Registry

No security issues found.

Audited release
2.0.0
Findings
none
Worst severity
—
Content hash
d0b65665186fde4f0e9d1236…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.