WordPress.org

Ready to get started?Download WordPress

Forums

WP Widget Cache
feature request: support for qTranslate (4 posts)

  1. RavanH
    Member
    Posted 3 years ago #

    Hi,

    Although this plugin works fine, I'm afraid it fails when running alongside qTranslate.

    The cashed widgets versions are served but they might be in a different language than the one the visitor has selected.

    I can imagine it might be too complicated or too much work (core recoding?) to make Widget Cache take either the language or URL (where a language string will be used) into account when storing and serving from cache, but it would really be great addition to the project...

    In any case, thanks for a great plugin :)

    http://wordpress.org/extend/plugins/wp-widget-cache/

  2. DSmidge
    Member
    Posted 2 years ago #

    I just installed the plugin myself and I managed to enable qTranslate support with this: edit "widget-cache.php" in "/wp-content/plugins/wp-widget-cache".
    Find function "widget_cache_redirected_callback" and line starting with "while($this->wcache->save(". Add "$q_config['language']." after "save(" and before "$this->get_widget_cache_key". Above this line write "global $q_config;".

    qTranslate is really slow and this plugin helps a lot. Now all we need is a nav-menu caching functionality.

  3. RavanH
    Member
    Posted 2 years ago #

    Hey, that's great! Thanks for sharing!

    I hope the plugin developer will pick up on it :)

    qTranslate can indeed use a little help speeding things up...

  4. DSmidge
    Member
    Posted 2 years ago #

    Yeap, qTranslate is reeealy slow if your blog grows big.
    Few speedup tips on my blog.
    Also watch out for PHP 5.4. It will be significantly faster (around 25%).

    I'm trying to extend this plugin so it would cache navigation menus too. Maybe I'll succeed.

    What can also be done (but I have no time to implement it):
    - cache excerpts (on post change, comment change, cat change, etc.),
    - cache posts (same triggers as in excerpts),
    - regenerate cache file after the old contents has been served to user (I saw a reference to this in wp-super-cache).
    In this way WordPress would be super fast.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic