Viewing 7 replies - 1 through 7 (of 7 total)
  • Looking thru the author’s code i see it triggers an action. If you want you could place an add_action(‘w3tc_flish_all’,..) hook and get a callback in say your own functions.php where you can then push a header(“HTTP/1.1 302 Found”); re-direct back to where you want to end up. However, I highly recommend u set your action with a low priority (e.g. 99) so it gets executed after w3tc flushes.

    oh and also recommend you only do this when is_admin() is true!

    Thread Starter Richard Mountainjoy

    (@inb4sales)

    Hi Kimberly

    Thank you for the reply. I hope you don’t mind me asking you to mock up a sample code for me for Christmas, please?

    Thread Starter Richard Mountainjoy

    (@inb4sales)

    Hi Kimberly

    Thank you for the reply.

    I posted a reply but can’t see it for some reason.

    Can you provide a sample code please?

    Thread Starter Richard Mountainjoy

    (@inb4sales)

    Hi Kimberly

    Thank you for the reply.

    I posted a reply but can’t see it for some reason.

    Can you provide a sample code please?

    https://somelink.to/somewhere

    Hi Richard! Sure…however, I decided to play with w3tc and oddly enough i notice that it does not redirect (as u described) but in fact just clears and remains on the existing page so i am bit confused by your problem. Just now i just tried clicking the “Empty All Cache” from the admin bar, and the “Empty the Page Cache” and both clear and remain on the page they were clicked on.

    Curious, can you try disabling your other plugins (if possible) to see if there might be a conflict? because i can’t duplicate the problem on my end and without that i can’t write up a coded solution for ya.

    Cheers
    Kimberly

    Thread Starter Richard Mountainjoy

    (@inb4sales)

    I’m running debian jessie(8.1), nginx 1.9.6, php5.6-fpm and mariadb 10.18. Latest wordpress 4.3.1 as well with buildersociety’s light theme I customized for myself.

    I noticed in editing w3-total-cache/pub/js/widget.js (inactive), that its first five lines are:

    jQuery(function() {
        var ajaxurl = window.ajaxurl;
        jQuery('.w3tc-widget-ps-view-all').click(function() {
            window.open('admin.php?page=w3tc_dashboard&w3tc_test_pagespeed_results&_wpnonce=' + jQuery(this).metadata().nonce, 'pagespeed_results', 'width=800,height=600,status=no,toolbar=no,menubar=no,scrollbars=yes');

    modifying the window.open(‘admin.blabla string’) doesn’t change anything.

    It used to be that I could write css, save the changes, clear all cache and check out the changes on the site, now instead I have to open the clear all caches in a new window. Clicking clear all caches used to keep me on my current /wp-admin/whatever page.

    My webserver used to be on apache/nginx(serverpilot.io’s installed version) and I don’t remember w3tc doing this during that time. Maybe something’s wrong with the nginx config on my new server?

    My site(https://inb4sales.com) isn’t that fantastic, but isn’t slow either https://tools.pingdom.com/fpt/#!/efpmbZ/https://inb4sales.com.

    It’s hosted in California with Digitalocean 512MB plan.

    Plugins I’m running are:
    Disable google fonts
    Tablepress
    Tablepress responsive stuff
    Easyazon core
    Easyazon pro
    W3tc community(in edge mode)
    Google xml sitemaps

    Disabling the plugins didn’t change anything.

    I tried changing my nginx location conf from:
    location / {
    try_files $uri $uri/ /ec/index.php?q=$uri&$args;
    }

    location / {
    # try_files $uri $uri/ /ec/index.php?q=$uri&$args;
    try_files $uri $uri/ /ec/index.php;
    }

    but that doesn’t change anything either.

    Thank you for your help.

    Thread Starter Richard Mountainjoy

    (@inb4sales)

    I must be moderated on wordpress because I can’t see my comments after posting.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘My problem’ is closed to new replies.