tmuka
Forum Replies Created
-
That’s right, my getmod version would be used instead of the original. I don’t think I could write it as a plugin to extend the original plugin.
I have come to understand the reason get arguments aren’t cacheable, that’s because using mod_rewrite caching means the base filename is requested and loaded right from a static file if they exist, wordpress is not invoked at all.
My modified version simply throws away any GET variables in the request, it’s up to the reader to setup the theme to use ajax to parse any necessary dynamic content from the GET string. This helps to further reduce overhead since in the stock version any url with a query string is never cached.
Hope this helps!
Forum: Fixing WordPress
In reply to: Just did a url change and widgets are goneI ran into this issue after I did a find/replace of my domain name and path in the db. The reason i’ve discovered is that since widget (and other) options can be stored as php serialized strings, changing the length of the strings in the data breaks the unserialize process and the widgets no longer have valid settings arrays.
In my case it was easier to manually setup the widget again than it was to fix the issue by taking the original db backup, php unserializing the widget options strings, updating the php objects, reserialzing, and putting them back in the sql dump.
Hope this is informative!
Forum: Networking WordPress
In reply to: Problem updating to 3.1 with networkThe workaround i’ve found for this issue is to temporarily change my local workstation’s hosts file and that one server’s hosts file to point to only one of the server’s internal IPs, like
192.168.1.200 http://www.example.com
this did the trick for me with the 3.1.1 upgrade. hope it helps you.
Forum: Plugins
In reply to: [HyperDB] [Plugin: HyperDB] my config file seems to be ignoredyou’re assigning your variables backwards too, read the post above my last one…
eg.
‘host’=>’192.168.5.5’, // If port is other than 3306, use host:port.Forum: Networking WordPress
In reply to: WP Multisite doesn't use custom db-error.php or have a hookI suppose if somebody else is interested in the dirty hack here it is. In “function ms_not_installed” on line 224 of wp-includes/ms-load.php, insert dead_db();
like this…<br /> function ms_not_installed() {<br /> dead_db(); //hacked this in so we can get use our custom db-error.php<br />edit: submitted trac ticket. http://core.trac.wordpress.org/ticket/16990
Forum: Networking WordPress
In reply to: Problem updating to 3.1 with networkI have the same issue trying to “update network”. I’m running a pair of servers behind a load balancer, i’m wondering if that’s related to this problem.
I still need to do some more testing, but it seems like my simple mod is working with query string param caching, even differentiating between queries such as /?s=one and /?s=two
it’s by no means extensively tested, but it seems to be working for my configuration on dreamhost. Give it a try if you care to, let me know if it works for you…
http://tonymuka.com/wp-super-cache-getmod.tar.gz
Of course, all credit for all but a few comments in this code go to donncha. If he prefers me take this down, i’ll be happy to.Forum: Plugins
In reply to: [W3 Total Cache] HyperDB and W3 Total CacheThanks for the info, Frederick. I just ran into this configuration challenge today. I see from searching around that both plugins require use of different custom /wp-content/db.php files which can’t co-exist by default.
donncha & qdinar, thanks for the response, i appreciate the expertise.
qdinar, i did modify the plugin so it would cache requests with query string parameters. my tests probably worked since in my case it didn’t matter if i ignored the query string arguments, i just needed the pages cached for performance reasons.
I’m not testing w3-total-cache which has an option to cache requests with query string args.
Forum: Plugins
In reply to: [Plugin: W3 Total Cache] WordPress MU activation and sitewide cacheSorry to drag up this old thread. I’m wondering if there is any home for network activation with newer versions of WordPress. I appreciate anduriell’s tips but they don’t look like they apply to WordPress version 3.0.5.
Thanks!
Hi allieai, my attention has been sidetracked from working on/testing this for now. It seemed to work, but I didn’t test extensively, so i’m sure there may be edge cases I missed, like search and login or something, etc.
qdinar, i commented out “#” that rewrite line above so that supercache WOULD cache urls containing the equals character. My goal was to eliminate the need for php with previously cached url requests, including the ones with query strings params. Of course, i’m sure there are many ways to solve this problem, hopefully yours works satisfactorily for you!
I am curious to hear from donncha on potential gotchas I may be missing here.
Forum: Plugins
In reply to: [HyperDB] [Plugin: HyperDB] my config file seems to be ignoredI’m by no means the expert on this, but I believe you have the order of your array variables index and values switched.
may want to try something like this instead…
$wpdb->add_database(array( 'host'=>'192.168.5.5', // If port is other than 3306, use host:port. 'user' => 'wp_user', 'password' => foo, 'name' => 'wpdb', 'write' => 0, 'read' => 1, 'dataset' => 'global', 'timeout' => 0.2, ));Hope this helps!
Forum: Fixing WordPress
In reply to: Enable shortcodes in custom post types?Ok, turns out the issue was that the get_the_content() in my custom query_posts loop doesn’t apply filters. (this is noted at the bottom of http://codex.wordpress.org/Function_Reference/get_the_content
<?php
echo apply_filters(‘the_content’,get_the_content(‘Continue reading <span class=”meta-nav”>→</span>’));
?>Hope this helps somebody else!
Forum: Fixing WordPress
In reply to: Enable shortcodes in custom post types?Thanks for the help, dfunkydog!
Yes, my shortcode does work for normal posts. The shortcode is pretty simple, still i tried an even simple test shortcode that still doesn’t work in my custom post type.
// [sc_test]
function sc_test(){
return “TEST SUCCESS”;
}
add_shortcode(‘sc_test’, ‘sc_test’);my shortcode is declared above my custom post type in functions.php
thanks for any advice you can provide, i appreciate it!
Forum: Plugins
In reply to: [Tools for Twitter] [Plugin: Twitter Tools] Authentication FailedTo anyone having difficulty finding the “My Access Token” menu. The issue seems to be the domain. Make sure you are using the “dev.” subdomain! This had me running around for almost a half hour.
http://dev.twitter.com/apps/