Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • @mvandemar you have a good point there. But still I would recommend you to look further up at Frederick’s comment.. As he is the project manager W3TC, the system is based on the assumptions of his team (maybe community as well?), right?

    Exactly.. “It’s the whole purpose of the caching plugin to store what would otherwise be dynamic pages, thus reducing the load on the server.”

    What is cached is the result right? not the computational part (or else the algorithm).. You don’t want the server to go through the computational part multiple times and that’s why caching is used, to produce only once.

    Based on Frederick’s comment above, php files are considered to be part of the computational part.

    I don’t get it either.. why would that be a bug? most systems (even a system of humans) are based on assumptions and decisions. In this case, it is your assumption to cache php. Personally I wouldn’t want any of my php files to be cached since I’m using php for computational purposes.

    Noticed same behavior as well. Then I thought, “since w3tc is caching the whole page when the page is fully loaded, what if I add a javaScript timer to delay the disqus js execution by 3 seconds..?” In my case it worked fine, but the comments form was loaded after 3 seconds of the initial page load.

    To test simply wrap the disqus javaScript code with a timer:

    setTimeout(function () {

    //Disqus code here!!

    }, 3000);

    I used the “Universal Code” from disqus and not the wordpress plugin. However, wrapping the code in the plugin with the timer should work. This should/could be used by anyone that needs immediate results until the issue has been resolved.

    Weird thing, I use both W3TC and Latency Tracker on WP 3.2.1 and everything is running smoothly.. I checked my setup on Latency Tracker with w3tc enabled and disabled. No warnings/errors so far (@Frederick Townes) and no latency has been noted by w3tc (@Roy McKenzie).

    Don’t know if my post is helpful, but worth mentioning to investigate further.

    @steffi3rd and @jesse Gardner what I did was to use the same command for post flush

    if (function_exists(‘w3tc_pgcache_flush_post’)) { w3tc_pgcache_flush_post($categoryID); }

    but instead of adding the post ID I added the category/tag ID and it worked. Why? Because it makes sense it terms of computer programming. So think of it as this command will flush individual items.

    By flushing a category/tag by ID (which is the only way) it flushes the whole category, including /blabla/page/2 etc..

    When I got to the point to ask the same question I looked into the faq and I noticed there are only two methods provided by W3TC to flush the cache. Then I asked my self “how does W3TC flush the categories/tags then..?”. I tried it and it simply worked.

    @nittybitty that depends on your cloudflare settings. If your mirrored CDN is on a subdomain you could set cloudflare not to handle the subdomain.

    I managed to find a way around it.. this is the code I used (for future reference as well):

    global $wpdb;

    $insertUser = “INSERT INTO $wpdb->users (user_login, user_pass, user_email, user_url) VALUES (‘$user_login’, ‘$user_pass’, ‘$user_email’, ‘$user_url’)”;
    $wpdb->query( $insertUser );

    $user_id = $wpdb->get_var($wpdb->prepare(“SELECT id FROM $wpdb->users WHERE user_email = %s”, $user_email));

    $my_user = new WP_User( $user_id );
    $my_user->set_role( “Contributor” );

    don’t forget to escape all inputs for security reasons..
    Thanks for you time!!

    @el45 thanks for your reply, indeed there is no support about this.. now when you say:

    “I accomplished this by installing the plugin as ‘must use’ (ie: in ‘wp-content/mu-plugins’ instead of ‘wp-content/plugins’)”

    which plugin are you talking about?

    same here.. any help would be appreciated!

Viewing 9 replies - 1 through 9 (of 9 total)