inpsyde / translation-cache Goto Github PK
View Code? Open in Web Editor NEWImproves site performance by caching translation files using WordPress object cache.
License: GNU General Public License v2.0
Improves site performance by caching translation files using WordPress object cache.
License: GNU General Public License v2.0
I install you plugin in wp. how i can enable plugin?
Hi there,
I wanted to see if from your feedback there is any contraindication for installing the package as "wordpress-muplugin" instead of "wordpress-plugin" then copying the stuff to mu-plugin folder.
As it is installed throught composer it could be required to use a mu-require, isn't it?
Anyway, it's only a matter of feedback to better understand this choice.
In advance, thank you for your response!
Cheers
I miss some documentation on how to see if the plugin is working correctly.
@bueltge I have installed the plugin and I can see that the mu-plugin folder and content is created. How can I check if the plugin do cache the translations files?
My site uses advanced-cache.php (Breeze cache) โ im not sure if this covers the nedded WP Object Cache?
I'm running WordPress 4.8.1 with Memcached for object caching. When I enable Translation Cache, I see this warning hundreds of times in my debug.log:
[20-Sep-2017 02:46:54 UTC] PHP Notice: Undefined variable: found in /mnt/disks/www/wordpress/wp-content/plugins/translation-cache/src/MoCache.php on line 339
[20-Sep-2017 02:46:54 UTC] PHP Notice: Undefined variable: found in /mnt/disks/www/wordpress/wp-content/plugins/translation-cache/src/MoCache.php on line 340
Any idea what's going on here?
Here is the error from my debug log:
[03-Oct-2017 04:39:26 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Inpsyde\TranslationCache\MoCache::on_theme_switch(), 2 passed in /var/www/mysite.com/wp-includes/class-wp-hook.php on line 298 and exactly 3 expected in /var/www/mysite.com/wp-content/plugins/translation-cache/src/MoCache.php:119
Stack trace:
#0 /var/www/mysite.com/wp-includes/class-wp-hook.php(298): Inpsyde\TranslationCache\MoCache::on_theme_switch('My Theme', Object(WP_Theme))
#1 /var/www/mysite.com/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)
#2 /var/www/mysite.com/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#3 /var/www/mysite.com/wp-content/plugins/multilingual-press/inc/copy-site/Mlp_Duplicate_Blogs.php(150): do_action('switch_theme', 'My Theme', Object(WP_Theme))
#4 /var/www/mysite.com/wp-includes/class-wp-hook.php(300): Mlp_Duplicate_Blogs->wpmu_new_blog(27, 1)
#5 /var/www/mysite.com/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) in /var/www/mysite.com/wp-content/plugins/translation-cache/src/MoCache.php on line 119
Hi, Nice plugin!
How do I clear the cache? I miss a button in the admin area to clear the cache after I have changed a translation string.
Hi,
the package isnt' reachable from packagist.org nor composer...
Could you update it on packagist?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.