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/
DSmidge
Member
Posted 3 months 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.
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...
DSmidge
Member
Posted 3 months 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.