Title: _load_textdomain_just_in_time from PgCache_Plugin.php
Last modified: August 16, 2025

---

# _load_textdomain_just_in_time from PgCache_Plugin.php

 *  Resolved [Fetch Designs](https://wordpress.org/support/users/fetchdesigns/)
 * (@fetchdesigns)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/_load_textdomain_just_in_time-from-pgcache_plugin-php/)
 * The W3 Total Cache plugin has been throwing the following in my logs every single
   page load for a long while now. It’s still occurring in the latest version of
   W3TC `2.8.12` and the latest version of WordPress `6.8.2`.
 * > Function _load_textdomain_just_in_time was called incorrectly. Translation 
   > loading for the w3-total-cache domain was triggered too early. This is usually
   > an indicator for some code in the plugin or theme running too early. Translations
   > should be loaded at the init action or later. (This message was added in version
   > 6.7.0.)
 * I tracked this to two translations added too early in `wp-content/plugins/w3-
   total-cache/PgCache_Plugin.php` for the text `'[W3TC] Page Cache file GC (every%
   d seconds)'` and `'[W3TC] Page Cache prime (every %d seconds)'`. the errors when
   away when I removed the `__()` wrapping these. Can you please advise when this
   can be corrected?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2F_load_textdomain_just_in_time-from-pgcache_plugin-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/_load_textdomain_just_in_time-from-pgcache_plugin-php/#post-18603810)
 * Hello [@fetchdesigns](https://wordpress.org/support/users/fetchdesigns/)
 * Thank you for reachin out and I am happy to help!
 * Let me double-check this and try to replicate, and I’ll get back to you with 
   more information on this.
   Just to clarify, this happens when you are using a 
   language other than English in your dashboard?
 * 
   Thanks!
 *  [mvdevelop](https://wordpress.org/support/users/mvdevelop/)
 * (@mvdevelop)
 * [9 months, 2 weeks ago](https://wordpress.org/support/topic/_load_textdomain_just_in_time-from-pgcache_plugin-php/#post-18616956)
 * Hello [@vmarko](https://wordpress.org/support/users/vmarko/)!
 * I confirm, I encountered this problem with calling the _load_textdomain_just_in_time
   function myself. Yes, it occurs when the language selected is not English (in
   my case, it is Russian). Please fix this problem in the next update, otherwise
   this message is very crowded debug.log.
 * There is also another problem with the is_feed function, it also says that the
   function is called incorrectly: Conditional tags do not work until the request
   is parsed. Until that moment, they always return false. Additional information
   can be found on the page «Debugging in WordPress». (This message was added in
   version 3.1.0.) in /var/www/mysite/data/www/mysite.ru/wp-includes/functions.php
   on line 6121

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘_load_textdomain_just_in_time from PgCache_Plugin.php’ is closed to new
replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [mvdevelop](https://wordpress.org/support/users/mvdevelop/)
 * Last activity: [9 months, 2 weeks ago](https://wordpress.org/support/topic/_load_textdomain_just_in_time-from-pgcache_plugin-php/#post-18616956)
 * Status: resolved