Search Results for 'cache'

Results from the Forum
mehedi
tagDiv Member

1. eliminating render blocking js and css — tried everything but didn’t helped.
2. caching – w3 total cache
3. image optimization – wpsmush.it
4. What do you mean by “how do you compress?”

thanks for the help!

saltzfrau
tagDiv Member

OK so now it’s working again…I think this is a cache issue.

saltzfrau
tagDiv Member

I spoke too soon. Works when I install it, goes mad when I try to customize it from the theme panel (child theme or not, and still like this after emptying all the caches)

simchris
tagDiv Member

Be sure to deactivate child theme when upgrading and select main theme as working; then upgrade files; then go back and activate child theme. At least that seems to be the way to do that. And of course clear cache on server/CDN, and your web browser – often what happens is that something is loading the old styles, and so browser ends up loading mix of old and new. Might not be your issue, but worth a try. 4.2 does work, but I haven’t used it with child theme myself as I prefer to change core files and use custom CSS to avoid such weirdo issues with child themes, and I’m a believer in NOT using the CSS redirect from child to parent.

simchris
tagDiv Member

Hi, Shashank
you know, I tried using a sub domain, and in our case with APC and mod_pagespeed I didn’t see much improvement since in theory once it’s cached, it’s not critical which locale on your server it comes from. I think there is some “number of connections” level where if you’re above that it CAN help, which I don’t recall off top of my head; maybe 15 or 20? Meaning if you were loading 50 images per page, then loading some off sub.yourdomain.xyz might speed things up. Again, you’d need to run some multiple speed tests on that to see how many msec you save.

And do something logical like
pix.mysite.zyz >> all portfolio images
mysite.xyz/images/ >> all business images

or something like that, otherwise you might end up with a nightmare of organization remembering what is where. 🙂

ALSO: remember a homepage is always a “special case” where loading many small compressed thumbnails doesn’t add much overhead. I think one of mine has 60+ images on it, also.

But remember most people these days don’t start at your home page, they start on a post found from social media, etc. (unless you’re tracking audience entry points and know the homepage is that critical for speed).

  • This reply was modified 11 years by simchris.
Radu
tagDiv Staff

Hi,

if you are using the nginx cache, it may be possible that the request will be cached even via ajax. I would recommend that you use w3 total cache with a lower caching time like 1 hour.

Thanks,
Radu O.

laehaem
tagDiv Member

Hi,

I’m trying to improve the performance of my site (http://admitto.nl), which is now at 49% for mobile and 65% for desktop with Pagespeed). This is however the max I’ve been able to reach. Do you have any more tips or tricks?

Im using the Newspaper theme with the following plugins:

ClickDesk Live Chat
Contact Form 7
Google Analytics Dashboard
Hide Title
MailPoet Newsletters
Custom Anti-Spam
Recent Tweets Widget
Share buttons by AddtoAny
tagDiv Social Counter
tagDiv speed booster
W3 Total Cache
Wordpress SEO
WP-Optimize
WPBakery Visual Composer
WP Smush.it

I know these are a lot of plugins, but I don’t think they influence the performance that bad. Pagespeed is mainly complaining about compressing CSS/JS. Any ideas here?

Thanks in advance!

Lucian
tagDiv Staff

Hi,

Make sure you deactivate any CDN plugins and empty server cache if you use any. Also make sure you are not using the 980px layout, we have an issue with the big slider when using the 980px layout.
If this doesn’t helps please let me know and send a link to your site so I can inspect this issue.

Thanks

daicadung
Participant
#0

Hi tagDiv,

My site running with cache system by nginx, when i add new post then old posts with ‘SIMILAR ARTICLES’ not show these new post, i think, i will convert ‘SIMILAR ARTICLES’ to ajax load ‘SIMILAR ARTICLES’, how to modify code?

Best regards,

simchris
tagDiv Member

Actually, if you’re using mod_pagespeed and caching on your server, then (at least in our case), our images load faster via local cache after the first visit. And you have no control over the issues you’re having – you can’t change the URLs as used by Photon as the CDN likely uses the ?= for cache control to manage updates automatically.

Always a trade off on that stuff. And you would need to do some actual tests on “page load speeds” for the images to see how that works.

In our case, our dedicated server with APC and mod_pagespeed was faster than Amazon’s CDN after first load, unless somebody happened to be in a really far away country.

Your mileage may vary, obviously. But only way to get around the issues with outside sites impacting your rating, is simply not to use them 🙂

simchris
tagDiv Member

You might have a wait. Not everybody who is on the forum has time to fix your server for you. Your first chore would be to read through all the posts in the PageSpeed topic where many folks, including myself, have provided a wealth of FREE advice on how to optimize your server, pagespeed, caching, htaccess and set your server settings properly for gzip/deflate, time to live headers, etc.

The “tagdiv speed booster” plugin is only designed to help with issues of loading js and css files in the most efficient manner for the theme; it doesn’t do anything for your server side caching, account speed on the net (response time), gzip/deflate, expiration headers, or image compression. Put another way it’s not a “config file” for your server, it’s preset to speed up the theme, rather seamlessly in most cases. While you can add to it, if you need to have an additional plugin or something “optimized” for loading when theme pages load, it will NOT fix issues on your server or the content you upload.

Advice would be to first optimize your site content such as using GTMetrix to check your site for server side elements which need to be addressed FIRST, then move on to elements which can be addressed via htaccess, optimize images, and the like. Do all your checks with mod_pagespeed off as this caches elements while you’re working on things. Set the tagdiv speed booster last (only edit it if you understand what you’re doing); then when you have a decent setup, then switch on mod_pagespeed.

However, as noted in the PageSpeed topic, gzip/deflate, expires headers, and the like are good for 20 points all alone. Most common issue if your score is below 80 desktop.

Also, remember this forum provides theme support from the developer, not server management support. You need to learn to manage your server and hosting setup, and this is necessary regardless of what theme you run. So, unless you address those issues first, then the elements to fix in WordPress will not be very effective.

I’m sure Marius will be happy to help with questions on the td_speedbooster plugin included with the theme, but you really should read through the PageSpeed topic since I’ve provided a wealth of advice, and how-to elements there which are critical to optimizing your site — including my own mod_pagespeed settings!

  • This reply was modified 11 years by simchris.
tenocation
tagDiv Member

Can you please give me your single-loop.php file along with a screenshot of advance custom field setup. I will be really grateful. I tried but it’s not working. Can i make a custom field without plugin? I think dreampress hosting has some issues with Advance Custom fields plugin due to varnish cache.

manu
tagDiv Member

Hello Lucian,

Thanks for the reply. I Had to de-activate the WP Super cache plugin and got it working now.

Although there are two more issues which i am not able to sort out.

1. On the home page even though i have infinite scroll activated, it is not working properly. As soon as i hit the footer, it does not load more posts. So i have to scroll up and then scroll down again to make the infinite loader working. I have tried deactivating all the plugins, but still it does not seem to work.

2. I would like to change the home page design for mobile view. How do i do this ?

I am sending you the login details through email for you to further investigate on these issues.

Thanks for your help.
Manu

gnoe
tagDiv Member

Thanks for your answers.
I thought Apc would be the official PHP opcache but it’s Zend opcache.

Radu
tagDiv Staff

Hi,

I’m more familiar with APC and that’s what we use on our demo because we’re running php < 5.5 . From 5.5 they ship a opcode cache.

manu
Participant
#0

Hello Support,

My website: http://desinema.com/

I successfully installed the theme and everything was working fine untill yesterday. I have done all the customization and now our site is live.

But, today i see that sidebar is not working at all. I mean, What ever updates or changes i do to the sidebar widget, nothing is getting reflected on the website. It is stuck with the same sidebar settings. I believe this started happening after i installed W3TOTAL cache plugin. I have deleted this plugin now and still not able to use the sidebar.

Can you please look into this issue as soon as possible, since our site is live we don’t want to take any risk and fix it asap.

Kind Regards,
Manu Vasudev

Lucian
tagDiv Staff

Hi,

Thanks @TheMediumUTM!

@monsterdevelopment

Like @TheMediumUTM suggested you should try to install the version of Visual Composer which comes with theme files, also please make sure you disable all CDN plugins and empty cache, we had experimenting slider issues when using CDN.
Please let me know if you solve this and send a link if you try this again so I can check.
Hope this helps!

Thanks

tenocation
Participant
#0

I tried many times to clear render blocking css and JS but not successful. I hope someone here will help me out.

Here is my speedbooster.php file

<?php
/*
	Plugin Name: tagDiv speed booster
	Plugin URI: http://tagdiv.com
	Description: Speed booster for Newspaper theme - It moves the styles and all the scripts of the theme to the bottom. It also activates internal theme optimizations for better speed.
	Author: tagDiv
	Version: 2.5
	Author URI: http://tagdiv.com
*/

/*
 * 2.6  - fixed rendering bug on the loading of the page
 * 2.5  - code improvements, newspaper 4 compatibility
 *      - makes most of the javascript files use defer parsing
 *      - better compatibility with revolution slider
 * 2.4 - updated jquery version
 *     - support for https
 * 2.3 - fixed warnings when trying to move javascript files that are not registered
 */

class td_speed_booster {

    var $load_contact_form_7 = '';
    var $load_google_fonts = '';

    var $styles_for_footer = array();

    var $async_js_scripts = array(
        'contact-form-7',
        'bbpress',
        'woocommerce',
        'site',
        'devicepx',
        'js_composer_front'
    );

    function __construct() {
        add_action('wp_enqueue_scripts', array($this, 'enqueue_scripts_hook'), 100);
        add_action('wp_footer', array($this, 'wp_footer_hook'), 15);
        add_action('wp_head', array($this, 'wp_head_hook'), 15);

        define('TD_SPEED_BOOSTER' , 'v2.5');
    }

    function enqueue_scripts_hook() {
        global $wp_scripts;

        //$this->move_js_to_footer('bp-legacy-js');

        //detect revmin - revolution slider and do not move jquery
        if( !is_admin() and !isset($wp_scripts->registered['revmin'])){
            if (is_ssl()) {
                $td_protocol = 'https';
            } else {
                $td_protocol = 'http';
            }

            wp_deregister_script('jquery');
            wp_register_script('jquery', ($td_protocol . '://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js'), true, '1.11.0', true);
            wp_enqueue_script('jquery');
        }

        //move styles
        $this->move_style_to_footer('bbp-default-bbpress');  //bpress old
        $this->move_style_to_footer('bbp-default');  //bpress

        $this->move_style_to_footer('contact-form-7');
        $this->move_style_to_footer('td-bootstrap');
        $this->move_style_to_footer('td-theme');

        $this->move_style_to_footer('google-font-rest');
        $this->move_style_to_footer('woocommerce_frontend_styles');

        //jetpack lost styles
        $this->move_style_to_footer('jetpack-subscriptions');
        $this->move_style_to_footer('jetpack-widgets');

        $this->move_js_to_footer('themepunchtools');
        $this->move_js_to_footer('revmin');

        //bbpress
        //remove_action( 'bbp_head', array($BBP_Default, 'head_scripts') );
    }

    function wp_footer_hook() {

        $current_theme_version = '';

        if (defined('TD_THEME_VERSION')) {
            //get the theme version for style
            $current_theme_version = TD_THEME_VERSION;

            //on demo mode, autogenerate version hourly + day
            if (TD_DEPLOY_MODE == 'demo') {
                $current_theme_version = date('jG');
            }
        }

        foreach ($this->styles_for_footer as $style_id => $style_src) {
            echo "<link rel='stylesheet' id='" . $style_id . "-css'  href='" . $style_src . "?ver=" . $current_theme_version . "' type='text/css' media='all' />\n";
        }
    }

    function wp_head_hook() {
        if (defined('TD_THEME_VERSION')) {
            echo '<style>body {visibility:hidden;}</style>';
        }
    }

    function move_style_to_footer($style_id) {
        global $wp_styles;
        if (!empty($wp_styles->registered[$style_id]) and !empty($wp_styles->registered[$style_id]->src)) {
            $this->styles_for_footer[$style_id] = $wp_styles->registered[$style_id]->src;
            wp_deregister_style($style_id);
        }
    }

    function move_js_to_footer($js_id) {
        global $wp_scripts;
        if (isset($wp_scripts->registered[$js_id])) {
            wp_enqueue_script($js_id, ($wp_scripts->registered[$js_id]->src), '', $wp_scripts->registered[$js_id]->ver, true);
        }

    }

    function async_js_hook($url) {

        //check to see if we have js
        if (strpos( $url, '.js' ) === false) {
            return $url;
        }

        if ($this->strpos_array($url, $this->async_js_scripts) === false) {
            return $url;
        } else {
            return "$url' defer='defer";
        }

    }

    private function strpos_array($haystack_string, $needle_array, $offset=0) {
        foreach($needle_array as $query) {
            if(strpos($haystack_string, $query, $offset) !== false) {
                return true; // stop on first true result
            }
        }
        return false;
    }

}

new td_speed_booster();

And here is my function generated file

registered scripts
common | /wp-admin/js/common.min.js
admin-bar | /wp-includes/js/admin-bar.min.js
utils | /wp-includes/js/utils.min.js
svg-painter | /wp-admin/js/svg-painter.js
wp-auth-check | /wp-includes/js/wp-auth-check.min.js
itsec_file_change_warning_js | http://mydomain.com/wp-content/plugins/better-wp-security/modules/free/file-change/js/admin-file-change-warning.js
itsec_strong_passwords | http://mydomain.com/wp-content/plugins/better-wp-security/modules/free/strong-passwords/js/strong-passwords.js
devicepx | http://s0.wp.com/wp-content/js/devicepx-jetpack.js
wpuf-subscriptions | http://mydomain.com/wp-content/plugins/wp-user-frontend-pro/assets/js/subscriptions.js
wp-color-picker | /wp-admin/js/color-picker.min.js
jquery | 
media-upload | /wp-admin/js/media-upload.min.js
thickbox | /wp-includes/js/thickbox/thickbox.js
wpuf-chosen | http://mydomain.com/wp-content/plugins/wp-user-frontend-pro/admin/../assets/js/chosen.jquery.js
wpseo-admin-global-script | http://mydomain.com/wp-content/plugins/wordpress-seo/js/wp-seo-admin-global.min.js
td-wp-admin-general | http://mydomain.com/wp-content/themes/Newspaper/wp-admin/js/general.js
td-wp-admin-panel-js | http://mydomain.com/wp-content/themes/Newspaper/wp-admin/js/wp-admin-panel.js
suggest | /wp-includes/js/jquery/suggest.min.js
registered styles
admin-bar | /wp-includes/css/admin-bar.min.css
colors | 1
ie | /wp-admin/css/ie.min.css
wp-auth-check | /wp-includes/css/wp-auth-check.min.css
itsec_notice_css | http://mydomain.com/wp-content/plugins/better-wp-security/core/css/itsec_notice.css
wp-color-picker | /wp-admin/css/color-picker.min.css
wpuf-chosen-style | http://mydomain.com/wp-content/plugins/wp-user-frontend-pro/admin/../assets/css/chosen/chosen.css
google-font-ubuntu | http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,300italic,400italic,500italic,700italic&subset=latin,cyrillic-ext,greek-ext,greek,latin-ext,cyrillic
td-wp-admin-td-panel-2 | http://mydomain.com/wp-content/themes/Newspaper/wp-admin/css/wp-admin.css
thickbox | /wp-includes/js/thickbox/thickbox.css
wpalchemy-metabox | http://mydomain.com/wp-content/themes/Newspaper/wp-admin/content-metaboxes/meta.css
ithemes-icon-font | http://mydomain.com/wp-content/plugins/better-wp-security/lib/icon-fonts/icon-fonts.css
bbp-admin-css | http://mydomain.com/wp-content/plugins/bbpress/includes/admin/css/admin.css
jetpack-icons | http://mydomain.com/wp-content/plugins/jetpack/_inc/jetpack-icons.min.css

Here what my pagespeed test suggest

Remove Render Blocking Javascript
http://mydomain.com/wp-includes/js/jquery/jquery.js.pagespeed.jm.ocognCjcS2.js

http://mydomain.com/wp-includes/js/jquery/jquery-migrate.min.js.pagespeed.jm.mhpNjdU8Wl.js

http://maps.google.com/maps/api/js?sensor=true

http://maps.gstatic.com/maps-api-v3/api/js/17/15/main.js

http://mydomain.com/wp-content/plugins/wp-user-frontend-pro/assets/js/frontend-form.js.pagespeed.jm.DduuMTRcHs.js

Optimize CSS Deliver of the following

http://mydomain.com/wp-content/plugins/revslider/rs-plugin/css/W.settings.css,qrev=4.3.8.pagespeed.cf.DyIPD1r_80.css

http://mydomain.com/wp-content/plugins/revslider/rs-plugin/css/W.captions.php,qrev=4.3.8.pagespeed.cf.VUw1T7K7S2.css

http://mydomain.com/wp-content/plugins/wp-user-frontend-pro/assets/css/W.frontend-forms.css.pagespeed.cf.vemqQTxrMU.css

http://fonts.googleapis.com/css?family=Roboto%3A400%2C700

I am also using Dreampress which is on varnish cache. I enabled Page Speed Mod as well. No other caching plugin.
My Page Speed Score is 64 for desktop and 41 for mobile.

Further, Here is what i added in my httaccess

<IfModule pagespeed_module>
  ModPagespeed on
  ModPagespeedModifyCachingHeaders off
</IfModule>

# BEGIN Expire headers
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 604800 seconds"
ExpiresByType image/jpeg "access plus 604800 seconds"
ExpiresByType image/png "access plus 604800 seconds"
ExpiresByType image/gif "access plus 604800 seconds"
ExpiresByType application/x-shockwave-flash "access plus 604800 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 604800 seconds"
ExpiresByType application/javascript "access plus 604800 seconds"
ExpiresByType application/x-javascript "access plus 604800 seconds"
#ExpiresByType text/html "access plus 600 seconds"
#ExpiresByType application/xhtml+xml "access plus 600 seconds"
</ifModule>
# END Expire headers

Now please suggest me what to do for increasing my page speed. My site is damn slow. Please help me to correct the speedbooster.php file as per instructions. Special request ot Christopher for helping me out. Thanks

simchris
tagDiv Member

we use APC along with mod_pagespeed 🙂

gnoe
Participant
#0

Which one do you suggest for dedi server use?
Alternative PHP Caching (APC) or XCache.

simchris
tagDiv Member

My pleasure. I ended up not using cache plugin, since mod_pagespeed does great job in combination with server-based cache since it doesn’t have to run through the php system or wordpress code as a caching “plugin” does. You *can* use one, but I found it didn’t help much really and caused too many issues when I need to update a page or template.

Trick is knowing how to clear the cache on server when you go to update the theme to clear out everything before and after upgrade so web browsers can “see” the new versions of the style sheets.

But I think you’ve got it 🙂

tenocation
tagDiv Member

Thanks Christopher for reply. I have contacted dreamhost staff and they first told me that i don’t need to use any plugin and the speed will be improved with in a week. After that, i said if i want to, then they said that’s purely upto you. We recommend W3 Total Cache with some settings mentioned in Dreampress Wiki.

Therefore from now, i am not going to use any plugin. Thanks a lot.

simchris
tagDiv Member

Varnish is often used at server level, and that is the Dreamhost interpretation. You often need to let them know you’re running a WordPress site, or visit your control panel to tweak the settings for the cache. Since this runs on server “above” the typical second-tier plugins like W3 or Total Cache, you should not have to use the plugins stuff at all.

However, with mod_pagespeed running also, there are some things you will want to tweak (you can see my settings in the pagespeed sticky topic; but Dreamhost will likely have some things which can/cannot be set to “on” by using either your control panel or .htacess file declaration at top — again, see my settings in the forum pagespeed topic here).

Also, remember when testing that a page is slow first time when being cached, then subsequent visits are cached on server.

However, I’d likely
1) do a Google search for
Dreamhost DreamPress Varnish + Mod_Pagespeed + WordPress

2) check with your hosting provider (Dreamhost) for optimum setup for Varish and mod_pagespeed for WordPress, since they deal with that all the time and may even have a support FAQ on the right settings to use.

The combination of Varnish and mod_pagespeed is truly awesome. We are using APC opcode cache + mod_pagespeed on our server.

Normally the main issue is connecting mod_pagespeed to Varnish for caching so that mod_pagespeed can see updated content properly, but I’m certain DreamHost would have that properly connected by default or nothing would work right.

Hope that helps.

Upshot: with Varnish and Mod_pagespeed (aka “GPS”), you should not need to run a caching plugin (in theory).

  • This reply was modified 11 years by simchris.
mehedi
tagDiv Member

The developers recommend to use W3 Total Cache. Also, checkout the Pagespeed topic for some great tips from some other guys.

tenocation
Participant
#0

I am using dreampress + Newsletter Theme, and found that my site is really slow. I enabled PageSpeed mod from domain management settings but this doesn’t affect a lot. Any solutions for using varnish cache with this theme?

Thanks

Viewing 25 results - 29,276 through 29,300 (of 29,810 total)