wordpress-mo-cache icon indicating copy to clipboard operation
wordpress-mo-cache copied to clipboard

Why not cache the all $l10n

Open gagarine opened this issue 10 years ago • 1 comments

You cache each mo separately. But why not only creating one cache entry at the end with the entire $l10n?

gagarine avatar Apr 21 '15 20:04 gagarine

The plugin hooks on override_load_textdomain which is run once per file. How would you know that you have reached "the end", and how would you invalidate that cache later on?

khromov avatar Apr 21 '15 20:04 khromov