Search Results for 'cache'

Results from the Forum
alexpoucher
tagDiv Member

Yes I have read your post. I have just spent the last 2 hours trying everything you have mentioned. When I added the above code to functions.php the site quit working and I had to install the original functions.php to fix it. I have also read all documentation on CloudFlare.

The only query option CloudFlare has is this >

<b>cache</b>

According to Cloudflare to remove everything starting with the ? you should use the Ignore Query String setting, I am currently using this setting and the problem is still there, for posterity I have tried every setting and it still doesn’t fix the issue.

<b>cache</b> levels

Your above code reads

if( strpos( $src, '?ver=' ) )

but as you see here most of my problems are query strings that are ?resize= and ?oh= and ?ig_cache_key=

error

so should your code be modified to something like this?

function remove_cssjs_ver( $src ) {
if( strpos( $src, '?ver= ?resize= ?oh= ?ig_cache_key=' ) )
$src = remove_query_arg( 'ver', $src );
return $src;
}
add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );

or maybe something like this so all urls with a ? in it gets fixed?

function remove_cssjs_ver( $src ) {
if( strpos( $src, '?*' ) )
$src = remove_query_arg( 'ver', $src );
return $src;
}
add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );

If you would be willing to message me, I can give you admin access to my cpanel, ftp, cloudflare and website and once you fix it I will send you 85 dollars to your paypal account, please help me.

simchris
tagDiv Member

If you have trouble navigating in the theme docs here on the forum to the tutorials, here is link to my thread on optimization which can help you with some cool things for the functions.php file, such as removing query strings, emojis, etc. — easier to start on last couple of pages, frankly, than oldest pages — unless you want to

https://forum.tagdiv.com/topic/tutorial-chriss-custom-optimizations-for-functions-php-etc/

as one example
function remove_cssjs_ver( $src ) {
if( strpos( $src, '?ver=' ) )
$src = remove_query_arg( 'ver', $src );
return $src;
}
add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );

this won’t help probably with anything loaded off your CDN if they insert versioning for “cache busting” … where versioning is intentional to force re-cache when changed.

So, you need to figure out settings for your cdn/caching setup, as well as something like the above for WordPress generated elements.

Again – neither is theme related, but hopefully this will help in some way.

Alin [tagDiv]
tagDiv Staff

Hi,

First please check the System Status section like Chris suggested above – http://screencast.com/t/4vBOkUvvXiW and increase those parameters(if it is necessarily) at least to the recommended values – https://forum.tagdiv.com/system-status-parameters-guide/
Also please try to disable your plugins except Visual Composer and check how it goes. Most probably you have installed a plugin recently which cause these issues. Try to use less plugins.
Check also the pagespeed guide and optimize your site – https://forum.tagdiv.com/how-to-make-the-site-faster/
To improve your server response time you can try to reduce the number of queries (fewer plugins, fewer blocks on page, reduce the elements which use ajax requests/pagination like mega menus/load more/infinite load). To improve the loading speed look the MySQL query cache: http://dev.mysql.com/doc/refman/5.1/en/query-cache.html we also use it on our demo.

Thanks!

nateb2127
tagDiv Member

Hey Alin,
No worries – I just wanted to see if anyone could help because my hosting company doesn’t seem to be able too. All is good though – we fixed it, I think.
The set up is opcache, redis, and super cache – site loads in 1.2 seconds on average..

Alin [tagDiv]
tagDiv Staff

Hi,


@olivier7583
I’m not aware about Wp Rocket plugin settings so I cannot make any recommendations, sorry! The ajax views counter works properly using Wp Super Cache plugin.

@sphink
I just checked your site and I refreshed a post for few times and it seems to work properly – http://screencast.com/t/dAXFv9qAdoenhttp://screencast.com/t/mRNDeddKVhttp://screencast.com/t/RaHiR5tg8

Thanks!

Alin [tagDiv]
tagDiv Staff

Hi,

Unfortunately if you use the Mobile Theme plugin it will not work with any cache plugins or external, sorry!
We have tested it using Wp Super Cache but it seems that also this plugin creates issues and it doesn’t work properly. We have reported some issues to the plugin’s authors but they did not update the plugin for a while. If they don’t update it anymore we will try to test and recommend another cache plugin to work also with the mobile theme. So for the moment please disable Mobile Theme plugin.

Thanks!

Catalin
tagDiv Staff

Hello zugre,

Please keep in mind that this option is a general one, for entire website (mobile, tablet, desktop). Please try to disable all the active plugins, leave just Visual Composer to active, clear all your caches, purge CDN files if you are using the CDN system and install only the plugins that come bundled with the theme packet and rule out any conflicting plugins. I have tested on my site and everything seems to work as properly.

Thanks for the message!

Catalin
tagDiv Staff

Hello playmyrequest,

I have checked your website, and I did not saw any problems with your featured images. So, please provide some useful screenshots where to explain this issue. Also, you should try suing the Force Regenerate Plugin to regenerate the thumbs, clear all your caches and check the results.

Thanks for your understanding!

Alin [tagDiv]
tagDiv Staff

Hi,

Please disable all your plugins except Visual Composer, clear all the caches and disable also any css/js minifications and see if it works.
If the issue persist please provide also your site url so we can take a look.

Thanks!

Catalin
tagDiv Staff

Hello khan_7,

It is possible to be a CDN problem. Try to clear all your caches, purge CDN files if you are using the CDN system and if you are using some untested plugins, try to disable all of them and install only the plugins that come bundled with the theme packet and rule out any conflicting plugins.

Hope this helps and let us know how it goes!

Thanks.

Catalin
tagDiv Staff

Hello Shawn,

I have inspected your website, and I saw that in mobile mode, the featured images are not properly working. Also, I have notice that you have some errors through your console, like this -> http://screencast.com/t/U06gMgntKO1 and also, you are using some untested plugins. Please try to disable all of them, leave just Visual Composer to active, clear all your caches and install only the plugins that come bundled with the theme packet and rule out any conflicting plugins. Also, if the problem is still there, please try to make a full backup to your data and make a new clean install from scratch via FTP and check the results. -> https://forum.tagdiv.com/install-via-ftp/

Hope this helps and let us know how it goes!

Thanks for the message!

Catalin
tagDiv Staff

Hello,

Try to consult the Google, tell the problem and they should be able to provide a more accurate response in this regard. Notice that the theme only take the code and render it to your side. Also, you can try to update the theme to the latest version of it and check the results. For more information about our Ads you should consult here -> https://forum.tagdiv.com/header-ads-adsense/ If you have some additional customizations you should try to disable all of them and try to revert the theme to the initial state to rule out any issues and conflicts, clear all your caches and check the results.

Hope this helps and let us know how it goes!

Thanks for the message!

RaresI
tagDiv Member

hey @catalin

I did the changes in accord with your information – fiel wp-cache-phase1.php, but nothing happens.
I updated my wp to the latest version – wp 4.7 & I don’t use Jetpack, in case that this info makes any sense.
so, any suggestions? thank you

alexpoucher
Participant
#0

Please help me find a way to fix this problem (see image) I have been trying to fix it for weeks.

Error

I have tried installing plugins such as “Remove query strings from static resources” and “remove query strings” I have also installed pieces of code here and there I found online and no luck.

My site is connected to cloudflare so after I make any changed I am always sure to purge the cache there to see the current version of the site.

I have an admin account I can send someone to log in and fix this for me, I can even kick you a few bucks via paypal so you can go out and have some drinks on me.

The website is http://www.alexpoucher.com – you can see the F grade in the Pingdom Sitespeed Test here (Remove query strings from static resources RESULT) https://tools.pingdom.com/#!/KHaIG/alexpoucher.com

Waqasviki
tagDiv Member

if i want to use w3 total cache?

Waqasviki
Participant
#0

Why should i use wp super cache plugin instead of w3 total cache

Edragon
tagDiv Member

I suggest first to disable cache and check then without cache. That Way you can figure out is it cache problem or not.

nateb2127
Participant
#0

Hello all, I am wondering why in the world the first byte time is so slow.
It didn’t used to be until recently.
Our set up is opcache and redis.
Redis works really well with the theme and sped it up tremendously.
I have gone through all of our 46 plugins and there has been no change, i personally don’t believe it is the theme, which testing confirmed.
We are using inmotion hosting and on a dedicated server – we do have a high traffic site.
Here are some examples: https://www.webpagetest.org/result/161211_1P_5GK/
Pingdom: https://tools.pingdom.com/#!/dZoNss/https://christiantruther.com
GTmetrix: https://gtmetrix.com/reports/christiantruther.com/0lcfGHPR

Any help would be greatly appreciated.
Nate

simchris
tagDiv Member

Useful to specify full URL of site with https in wp-config.php

Good to do search/replace in MySQL dbase using phpMyAdmin to replace instances of http/site with https/site.

Good to go through all theme panels and make sure things like social media settings for /RSS feed or for logos are changes to https.

If using caching, you should ensure you full clear cache, and also check any code added to htaccess or functions.php which might use “http” for old site name vs “https.”

Lots of tutorials online about how to move site from http to https.

vcore_ltd
Participant
#0

Hi,
I’ve enabled SSL on the website and now I get a lot of errors that the theme CSS and JS are being loaded via an unsecure HTTP protocol. The website doesn’t load properly.
I have WP Super Cache plugin installed and configured as per the theme’s documentation. I don’t know if it might be causing the issue or not. Seems like if I disable cache and then reenable it again, the website functions well for some time…
How can I fix the errors?

simchris
tagDiv Member

Make sure you properly install theme. Clear all caches, or turn them off, disable any CDN setup. Remove any caching elements from your .htaccess file.

Check your htaccess file and wo-config.php file for any oddities breaking CSS loading.

Make sure you’re using modern web browser, not dead one like Safari for Windows, or IE8, etc.

If your site is mixed http/https, make sure you have that fixed to ONLY load via https and not both.

Make sure your domain resolves properly to either www or no www and not both.

Make sure WordPress works properly with default theme first.

olivier7583
tagDiv Member

Hi Bogdan

Have the same issue… Have installed one of the best cache plugin in his class : WP-Rocket

Loading time is now great (twice better compared to before the cache installation)

I have Enable the ajax view counter but it seems it is not counting properly… compared to before it seems that only a few views are taken into account… (only a few dozens instead of hundreds)

Am I missing something? should I do something? any advice?

Best Regards
Olivier

Bogdan B.
tagDiv Staff

Hello, Please try one more thing:
disable all plugins except visual composer, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.
Then test again and see if the translation work.

Thank you!

Bogdan B.
tagDiv Staff

Hello,

I don’t think there is a bug in the theme but rather a plugin conflict or a config issue.
Please increase your system status parameters as follows: https://forum.tagdiv.com/system-status-parameters-guide/
Then test again. If the issue is still there please disable all plugins except visual composer, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.

Thank you!

dexro57
tagDiv Member

try wp comet cache is a good cache too

Viewing 25 results - 22,151 through 22,175 (of 29,810 total)