Giter VIP home page Giter VIP logo

translation-cache's People

Contributors

bueltge avatar chrico avatar gmazzap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

translation-cache's Issues

Why not make the package "wordpress-muplugin"?

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

How do I verify that the translation cache is working?

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?

Undefined variable found in MoCache.php

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?

Plugin causes PHP fatal error with MultilingualPress

  1. Install and activate translation cache and MultilingualPress plugins.
  2. Add a new site and select any existing site for "based on".
  3. Click submit and PHP crashes, generating a 50x backend error.

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

Clear cache

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.