Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • I had trouble getting w3tc to leverage browser caching, so I disabled browser caching in the w3tc settings and added the following to my .htaccess file (this only works for Apache servers that allow mod_expires – I use Bluehost, and they allow it).

    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access plus 1 year"
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType image/gif "access plus 1 year"
    ExpiresByType image/png "access plus 1 year"
    ExpiresByType text/css "access plus 1 month"
    ExpiresByType application/pdf "access plus 1 month"
    ExpiresByType text/x-javascript "access plus 1 month"
    ExpiresByType application/x-shockwave-flash "access plus 1 month"
    ExpiresByType image/x-icon "access plus 1 year"
    ExpiresDefault "access plus 2 days"
    </IfModule>
    ## EXPIRES CACHING ##

    There is an explanation of what this does on the
    GMetrix site. Adding this to my .htaccess file increased my “Leverage browser caching” score on Google Page Speed from 14% to 100% and my overall score from 86% to 98%.

    Forum: Fixing WordPress
    In reply to: wp-cron is broken

    IMPORTANT: the solution above adds extra characters to your site URLs: “&doing_wp_cron=###################”. I did not like this, and it seemed to cause problems with the Redirection plugin, so I disabled both WP schedulers in the wp-config.php file (make sure to remove the line
    define(‘ALTERNATE_WP_CRON’, true);:
    if you added it as stated in my previous reply).

    Add these lines to wp-config.php
    /**
    * Disable WP Scheduler and WP Alternate Scheduler
    */
    define(‘DISABLE_WP_CRON’, true);
    define(‘ALTERNATE_WP_CRON’, false);

    and set up a cron job in the cPanel to make a get request to the wp-cron.php file at regular intervals as instructed here.

    After additional research, I learned my problem is that I use Bluehost and they don’t allow loopbacks so WP can call wp-cron.php – therefore no cron jobs were running for my site. However, Bluehost does allow you to set up your own cron jobs via the Cron Jobs tool in the cPanel. So, you can disable WP calling the wp-cron.php file and set up your own cron job to request the file at regular intervals like 5 minutes (or 1 minute or whatever you want).

    Like so:
    cPAnel -> Advanced -> Cron Jobs -> Common Settings: Every 5 minutes -> Command: wget https://www.yourwebsite.com/wp-cron.php?doing_wp_cron=1 > /dev/null 2>&1 (MAKE SURE TO REPLACE/INSERT YOUR WEBSITE URL) -> Add New Cron Job

    Forum: Fixing WordPress
    In reply to: wp-cron is broken

    Hi @cgoulding,

    I was having the EXACT same problem and my hosting service suggested I remove CloudFlare as it may be causing my site to fail to resolve correctly. HOWEVER, I suspected the issue was really with the WP scheduler included in WordPress, so I did some further research. I got my cron jobs to run again by adding the line

    define(‘ALTERNATE_WP_CRON’, true);

    to my wp-config.php file. This activates the alternate scheduler in WP. Also, make sure your hosting service has not disabled the WP Scheduler – look for this line in your wp-config.php file and remove it (or change true to false with no quotation marks around the word false):
    define(‘DISABLE_WP_CRON’, true)

    I left CloudFlare activated, so I don’t believe that had anything to do with the cron jobs running or not. Also, de-activating W3 Total Cache had absolutely no effect on the cron jobs – they still failed to run until I added the line above to wp-config.php

    Here is where I found the info: https://www.ads-software.com/support/topic/backups-not-running?replies=3 (the forum thread is about the UpdraftPlus plugin, which I do not use, but the info is still helpful, obviously).

    thank you

    Would you please post the code here? I think it would be very useful.

    Thread Starter OGC

    (@umyob)

    P.S., in case you need it my site is https://www.flightfoxcoupon.com/

    Thread Starter OGC

    (@umyob)

    Hi rm2773, thanks for the reply, I re-activated the branding a few days ago in case you were taking a look at it, and it continued to break in the middle of “Translate” (in IE only). I was planning to contact you today for help, but I noticed there was an update for your plugin. After the update, I checked IE and the problem appears to be resolved. I will mark this resolved and contact you again if I notice any further errors.

    I do see the Google toolbar after translation and thanks for explaining how that works. Great plugin, I gave it 5 stars.

    Sure, glad it worked for you ??

    My previous comment should state to make changes in child theme footer.php, ??
    If you do not use a child theme to make changes to CSS, template, php. etc. files you will most likely be very, very sorry you didn’t. Believe me, I speak from experience.

    This may not be proper coding, but this solution worked for me. Change this code in footer.php

    <?php do_action( 'twentythirteen_credits' ); ?>
     <a href="<?php echo esc_url( __( 'https://www.ads-software.com/', 'twentythirteen' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentythirteen' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentythirteen' ), 'WordPress' ); ?></a>

    to this code (replace with your site info)

    <?php do_action( 'twentythirteen_credits' ); ?>
     <a href="YOUR SITE URL HERE" title="YOUR SITE TITLE HERE"><?php printf( __( 'YOUR COPYRIGHT INFORMATION HERE', 'twentythirteen' ), '' ); ?></a>

    Solved this problem on my site by changing w3TC JS minify settings from automatic to manual.

    W3TC Performance > General Settings > Minify > Minify mode – set to manual.

    I made no other changes, but you can go to the Minify tab in w3TC and select where in the page you want to minify JS, and add any JS files.

    Also, make sure any CDN or performance network (e.g., CloudFlare) JS minifications settings aren’t interfering with the Twenty Twelve menu button on mobile devices. For example, I changed my CloudFlare settings from “Minify JS and CSS” to “Minify CSS only”. Now the menu button works and the changes only made the site a fraction slower.

    Hi maverickguy,

    I don’t know what version of WordPress you are using, but this plugin seems to have some problems.

    I cannot get this plugin to work with ver 3.2.1, even though it says the plugin works with this version on the plugin page. It works fine for the first 2 redirects, then won’t redirect anything else. I see other people had this problem, too: Plug in not working

    I could not find a satisfactory resolution, so I removed the plugin and will now look for another 301 redirection plugin – I bet there’s one out there.

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