- NewsmagRequirements for Newsmag
- NewsmagHow to update the theme
- NewsmagtagDiv Social Counter tutorial
- NewsmagTop bar templates
- NewsmagAjax view count
Okay, I got it, but perhaps my previous comment was little confusing or my ability to comprehend your most recent answer is not good 🙂 So, let me try to make few of my queries simple.
1. I understood the use of caching but couldn’t understand the difference between server side caching and wordpress side caching.
2. Yes, currently I am not running any caching plugin just to check, test and increase the performance without the use of it but then is it possible to get 90+ Pagespeed score without WP Super cache and cloudflare etc ? ( Because I have seen that once I enable these two, my Pagespeed goes above 90 even now)
3. Based on my request ( because of not getting mobile theme run because of server side strong caching ) , my hosting provider has completely disabled all kind of server side caching for my site. Should I ask them to re-enable it?
4. I don’t know why my mobile theme was conflicting with server side caching. So, Is there any way in which I can be specific to instruct only following features under server caching so that I can be able to use mobile theme in future ( currently I disabled mobile theme and using default mobile responsive version of desktop theme?
5. Is it really necessary to use mobile theme because I can see that it kills various necessary features like smart lists on mobile theme ask users to reload page everytime they want to next list number which is very irritating on users poitn of view.
Please try to answer these questions after indulging few of cookies from this cute cookies jar 🙂

Thank you.
Thank you
( oh, and you do want caching/TTL running for your site, so that the directives to cache stuff work using the server’s opcache/memcache; but do all the optimizations without using any caching plugins, in order to see changes, make changes, etc. — what these do is tell the browser not to keep re-loading things like your logo every time the page loads, or the style sheet, etc., and if they come back tomorrow, page loads quicker as the ‘time to live’ is longer than 24 hours or whatever — this speeds up pages, separate from the gzip/deflate stuff … )
Put another way:
server caching helps the server serve up re-used files quickly without reloading the single files over and over and over.
Caching plugins create a “static” copy of your page for short period of time, so that the whole page can be downloaded as a much quicker element as there are not dbase queries waiting on php processes for 20 things on the page.
Not sure that helps, just anecdotal.
Hey Chris,
Thank you for taking time and making real effort to help me out. 🙂
There are so many layers to your answers and everytime I read it, I find something new to look for.
Here is something important, few days back, I had issues with TD Mobile plugin theme. It was showing mobile responsive version of desktop theme on mobile but not the mobile plugin version. In an answer to my related thread ( read here) , Andrei told me that it’s happening because of strong caching enabled on my hosting site.
And hence I asked my hosting provider to disable caching and they disable all types of caching for my domain. Though after that mobile plugin theme started working but after using it for a while , I felt that mobile theme needs many more featured now. So, I disabled it.
I doubt that these Gzip/deflat things must be part of those caching system and which is currently diabled .
What do you think? Should I ask them to re-enable it?
I will also send the GTMatrix parametre to my hosting prover .I will also ask to check following things:
The following publicly cacheable, compressible resources should have a "Vary: Accept-Encoding" header: Right?
I will re-read your all your comments and then prepare a mail for my hosting service privder.
Let’s see how it goes. Thank you very much again.
Hey Chris,
Gracious !!!
Thank you for the detailed explanatory reply. As far this system status ( https://snag.gy/P2ApmR.jpg) to be believed , my host run on Apache server and hence the HTACCESS codes written by you under this thread should be valid.
As per recommendation, I started my HTACCESS file with :
<IfModule pagespeed_module>
ModPagespeed on
ModPagespeedEnableFilters collapse_whitespace
ModPagespeedEnableFilters remove_comments
ModPagespeedEnableFilters rewrite_images
ModPagespeedEnableFilters insert_dns_prefetch
</IfModule>
and then I added following code after default rewrite codes of WordPress:
AddType text/javascript .js
AddType application/vnd.ms-fontobject .eot
AddType application/x-font-ttf .ttf
AddType application/x-font-opentype .otf
AddType application/x-font-woff .woff
# BEGIN Expire headers
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 2500000 seconds"
ExpiresByType image/jpeg "access plus 2500000 seconds"
ExpiresByType image/png "access plus 2500000 seconds"
ExpiresByType image/gif "access plus 2500000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2500000 seconds"
ExpiresByType text/css "access plus 700000 seconds"
ExpiresByType text/javascript "access plus 700000 seconds"
ExpiresByType application/javascript "access plus 700000 seconds"
ExpiresByType application/x-javascript "access plus 700000 seconds"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
ExpiresByType font/truetype "access plus 2500000 seconds"
ExpiresByType font/opentype "access plus 2500000 seconds"
ExpiresByType application/x-font-woff "access plus 2500000 seconds"
ExpiresByType image/svg+xml "access plus 2500000 seconds"
ExpiresByType application/vnd.ms-fontobject "access plus 2500000 seconds"
</IfModule>
# END Expire headers
# BEGIN Cache-Control Headers
<IfModule mod_headers.c>
<filesMatch "\.(ico|jpe?g|png|gif|swf)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(css)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(js)$">
Header set Cache-Control "private"
</filesMatch>
<filesMatch "\.(x?html?|php)$">
Header set Cache-Control "private, must-revalidate"
</filesMatch>
</IfModule>
# END Cache-Control Headers
<IfModule mod_headers.c>
Header unset ETag
</IfModule>
<IfModule mod_alias.c>
RedirectMatch 403 /xmlrpc.php
</IfModule>
<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
</IfModule>
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?tomatoheart.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L]
The last code is to prevent hotlinking. Now as far I can read understand from your comment , the above written codes must have taken care of the required gzip/deflate settings through HTACCESS and should add up to 20 points to my score , but it didn’t happen 🙁
I still have these settings under htaccess and have also modified functions.php but the icrement in Pagespeed is only 2-4 points. On other side, I do feel my backend and homepage little faster while using after adding all these things. But there is no such impact on GTMAtrx score.
As you have mentioned :
Enable compression for the following resources to reduce their transfer size by 424.8KiB (79% reduction).
When I have already configured HTACCESS to compress it, why is it still showing there? AM I doing something wrong?
About Image optimisation thing, I use “Insanity plugin” to reduce file size while uploading the image and”optimus plugin” to compress it. the JPEG compression is set to 70 because I am worried to set it to 50 ( as recommended by you) because of the need of image quality. Since I am doing various changes, I will force regernerate and optimise images once I finalise all design aspect of my site.
Though I also tried checking GTMatrix points for my post page ( https://gtmetrix.com/reports/tomatoheart.com/vW3rCLXw ) , but it’s even worst than the homepage ( PAGESPEED SCORE: 53, YSLOW: 51)
about your second reply ( server side optimisation) , Being fron a non-programmer background, I will copy this comment and send it to my hosting provider to ask if they need to do anything.
Do you think there is something you can comment on my current situation.
Thank you.
-
This reply was modified 9 years by
Nano.
Also, your host really should be serving up this one properly:
The following publicly cacheable, compressible resources should have a "Vary: Accept-Encoding" header:
I had to get this setup properly on our new server that went live Aug 5, also. SO, have your host fix that; and send them that section with the files — basically the css and js should be serving the “vary …” thing. And that is also part of the proper setup of the gzip/deflate.
Hi,
The cdn has nothing to do with it. Simply install wp super cache and edit it’s files according to the link i posted above. A cdn is a different matter and not related to the mobile theme issue and wp super cache
Thank you!
hi,
this is the ceopde you need to change in wp super cache for it to work prioperly:
https://github.com/Automattic/wp-super-cache/issues/132
http://screencast.com/t/YLN48vYD0r9
For the moment it is the only solution we can come up with until they update their plugin
Thank you!
I have caching enabled and am using the ajax view count but i have noticed the google web crawler bot has now started hitting the ajax view count, which would increase the number of views compared to those shown in google analytics now that it will count bot hits.
Also importantly, i don’t want the web crawler wasting time with these extra requests, i’m happy for it to used cached view count each hit.
default robots.txt for wordpress is this:
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Do you think changing robots.txt to the latter would work? There is a lot conjecture about order of precedence of rules?
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Disallow: /wp-admin/admin-ajax.php?td_theme_name=Newspaper&v=7.3
Also if you aren’t already, consider not updating the count if its a bot hit.
EDit: actually google robots.txt tester says the latter should block it but the first version not. Are there any frontend resources or anything loaded via /wp-admin/admin-ajax.php?td_theme_name=Newspaper&v=7.3 that i shoudl be aware of i may be affecting?
-
This reply was modified 9 years by
karl_pietsch.
Hello @Bogdan-B unfortunately the problem persists in my blog, we followed each of the steps you gave us but we like; (
We have stopped the WP Super Cache to run the plugin for mobile again.
-
This reply was modified 9 years by
Rudy Rodriguez. Reason: No fount
Hello,
Well a cache plugin and cdn represent a large part of page speed so you might test with them active.
The core of both themes is the same so Chris’ customization should work on newspaper as well but I cannot say for sure unfortunately.
However this is not an official solution. It is user submitted so Chris is the one with the better answer for it as it’s his guide after-all 🙂
Thank you!
HI
By default the theme displays author name on module 8 which is used in block 9: http://screencast.com/t/AvhzGCicA Try to revert all changes made in theme’s core files, or upload a fresh copy of the theme in WordPress, clear all caches then test the site again.
Let us know how it goes.
Thanks!
I have been reading Chris’s custom optimizations for functions.php etc tutorial many times and today. I thought to make use of it for my website based on NewsPaper theme.
The sticky post by Chris is meant for NewsMag theme and I have no idea how compatible it is with Newspaper theme. Still I tried the most updated version of his optimisation code with name “/** CUSTOM OPTIM CODE : by Christopher Simmons – REV 8.17.16 */ ” using guidance written under this sticky thread
Here is the full code that I used is here Pastebin link
I also tried “slim version for newspaper them: june 2015” pastebin code here
along with one of above written codes ( not both at the same time)
I also added following things under HTACESS ( my htaccess file is here ), optimise my Database filesusing WP-optimise and WP-Sweep and have optimised my style.CSS using online minifaction tool suggested by Chris.
After trying all these things, though I felt that the backend and front of my site is comparably fast , but no considerable change in Page speed score or GTMatrix score.
Before all these customisation and optimization techniques:( Note: I have disabled all other caching plugins and CloudFlare since last few days to work on live raw site )
GTMATRiX Test Link: Click this
Pagespeed Test Link: Click this
PAGESPPED SCORE: MOBILE: 42 DESKTOP: 48
GTMATRIX SCORE: PAGESPEED SCORE: 56 YSLOW SCORE: 52
After making all these changes: ( Note: I have disabled all other cachine plugins and cloudflare since last few days to work on live raw site )
PAGESPEED SCORE: MOBILE: 42 DESKTOP: 50
GTMATRIX SCORE: PAGESPEED SCORE: 58 YSLOW SCORE: 56
So, the change in very minimal. Previosuly with WP Super cache and cloudflare, my GTmatrix scode used to be 95+gh under various threads here, many users have experienced 98+ pagespeed score after using Chris Techniques.
What am I doing wrong? Does Chris’s codes not support or work for Newspaper theme? Should I finally use slim mini newspaper version or the newsmag theme one ?
Is there any such thread for the NewsPaper theme?
Please help me to get answers for all these issues.
Thank you.
Hello,
Please disable all plugins except visual composer, clear cache and reset cdn files if you use it. then test the grid again. The grid on our end does not behave in such a way so there is something on your end affecting it.
Thank you!
Hello,
Please disable all plugins except visual composer, clear cache and reset cdn files if you use it. This is most likely a plugin conflict affecting your site.
Thank you!
Hi
Try to update the theme at V 3.1 which is available on themeforest and also update Visual Composer at V 4.12 which is included in theme’s path, clear all caches then test the site again.
Let us know how it goes and if the problem persist please provide your site url so we can have a closer look.
Thanks!
***URGENT**** URGENT **** URGENT
You can try couple of things
a) clear your cache on site if using plugin, or reset CDN if used
b) clear your web browser cache/history fully to reload new CSS used in WP
c) resave permalinks
d) clear transients with wp-optimize plugin
e) go to your menus settings and just resave them
f) disable conflicting plugins (use F12 in console view to see if ‘errors’)
Good luck! Your menus load just fine for me.
(( I don’t work here ))
Hi Team,
I presume that the theme is supported by the plugins listed below. If that’s the case why there are not listed in ”Active Plugins Overview”? I am wondering if I am missing something.
WP Super Cache – caching plugin
Contact form 7 – used to make contact forms
bbPress – forum plugin
BuddyPress- social network plugin
Font Awesome 4 Menus- icon pack, supported in the theme menus
Jetpack – plugin with lots of features *it may slow down your site
WooCommerce – eCommerce solution
WordPress SEO – SEO plugin
Wp User Avatar
Thanks,
A.
If you’re using caching, then you need to clear cache in both site/plugin as applicable AND in your web browser. Chrome in particular holds onto CSS until you clear history or do force reload.
e.g.,
Chrome:
Quick hard refresh can be done by using the following short cut keys
Windows/Linux:
Hold down Ctrl and click the Reload button.
Or, Hold down Ctrl and press F5.
just open the Chrome Dev Tools by pressing F12. Once the chrome dev tools are open, just right click on the refresh button and a menu will drop down. This menu gives you the option of doing a hard refresh, or even clearing the cache and do a hard refresh automatically.
With any new major update to WordPress, you should have backup to roll back to, if needed; you also must clear your browser cache, and any/all caches used in wordpress, CDN, etc.
You can also
a) resave permalinks
b) optimize db to clear transients with wp-optimize
c) simply resave menus from menu panel if none of the above helps
Also good to turn off auto-updates for WP, so you can be prepared with backups prior to doing an update to new version of WP; then roll back if something breaks.
Theme is working for me, but you can try the cache clearning, resave permalinks, resave menu; this is all necessary with many things that changed in WP with new versions of 4.6x.
https://forum.tagdiv.com/topic/strange-chinese-symbols-replaced-icons-and-arrows/
Guys – I’ve tried the solution listed here, edited my HTACCESS and also flushed my cache but the problem persists… Any bit of advice to help me solve this will be much appreciated!
Thanks in advance
Hi
Please make sure that you’re using V 4.1 of Social Counter plugin, this version is included in theme’s path, also make sure that you’ve setup the plugin according with our documentation: https://forum.tagdiv.com/newsmag-tagdiv-social-counter-tutorial/ clear all caches then test again!
Let us know it goes!
Thanks!
Hello,
Please make sure you clear all aches and only use wp super cache and these settings: https://forum.tagdiv.com/cache-plugin-install-and-configure/
You can also try to disable all plugins except visual composer, clear cache and reset cdn files as there could be a plugin conflict affecting the widget.
Thank you!
Hello GlanceCompany,
It seems to be an error generated by your dedicated server. Please try to contact your hosting provider, tell them this issue and they should be able to provide a more accurate response and fix that problem. Clear all your caches and check again.
Hope this helps and let us know how it goes!
Thanks.
Hello,
I have tested the post settings and there is no issue with them. Please disable all plugins except visual composer, clear cache and reset cdn files if you use it.
Then test again.
Thank you!
Hello Ivatese,
I have inspected your website and I suspect being an HTML problem wich generates the entire issue for your posts. Please try to check the HTML for your Ad code, everywhere use the advertisement to not be in HTML syntax errors. Also, please try to use the theme only with the plugins that come bundled with the theme and disable all of them which are untested and wich can cause some unknown issues, clear all your caches, purge CDN files if you are using the CDN system and check again the results.
If your problem is still there and if you need more guidelines in this regard, please send us an email at contact@tagdiv.com with your log-in information (wp-admin) so we can further inspect the issue. Also, please provide the link of this topic so we can easily identify you.
Thanks for your understanding!