Zoltan Baffy
Forum Replies Created
-
Forum: Plugins
In reply to: [W3 Total Cache] Page Cache: Preload and overwrite existing filesHi guys!
I got what @vielhuber says. I also try to eliminate that caching gap.
The plugin loops through the exired cached pages, but it’s slow. Why? Because you have a limited number of pages per interval to avoid server crash.
So, there is a trick: at first when the cache is empty use for example 50 pages per interval (or a number you normally use). The server caches all pages. Then, turn it up to 200 pages per interval or even higher. Why? Because you already cached all pages, so then you won’t overload your server, you just let the server quickly loop through all pages and find and regenerate the expired pages sooner.I just tried it with 2,500 pages per interval, and the update interval is 60 seconds (on shared hosting) and it works great! ??
The only drawback is that you can’t flush the cache, because it will cause a server overload when the plugin try to rebuild the empty page cache! Before that, set the “pages per interval” back!
This also leaves gaps in the cache, but lowers the number of expired pages.
Give it a try! ??- This reply was modified 1 year, 9 months ago by Zoltan Baffy.
- This reply was modified 1 year, 9 months ago by Zoltan Baffy.
- This reply was modified 1 year, 9 months ago by Zoltan Baffy.
Forum: Plugins
In reply to: [W3 Total Cache] Cloudflare purge by urlHi Marko!
Cloudflare is set to cache everything. So W3TC purges files on the hosting, it’s working right!But does W3TC sends an API request to Cloudflare, to purge the modified post/url from the Cloudflare cache too?
Forum: Plugins
In reply to: [Broken Link Checker] Sort by StatusThank you!
Forum: Plugins
In reply to: [W3 Total Cache] Remove Pragma HeaderBrowser Cache.
“Set pragma and cache-control headers to encourage browser caching of files.”The ‘Pragma’ header should not be used, it’s deprecated and it’s a request header only.
The website is in my logo.
- This reply was modified 3 years, 1 month ago by Zoltan Baffy.
- This reply was modified 3 years, 1 month ago by Zoltan Baffy.
Forum: Plugins
In reply to: [W3 Total Cache] Ignore Query StringSolved!
In
w3-total-cache\PgCache_ContentGrabber.php
:* Skip if there is query in the request uri */ $this->_preprocess_request_uri(); if ( !empty( $this->_request_url_fragments['querystring'] ) ) { $should_reject_qs = ( !$this->_config->get_boolean( 'pgcache.cache.query' ) || $this->_config->get_string( 'pgcache.engine' ) == 'file_generic' ); if ( $should_reject_qs && $this->_config->get_string( 'pgcache.rest' ) == 'cache' && Util_Environment::is_rest_request( $this->_request_uri ) ) { $should_reject_qs = false; } if ( $should_reject_qs ) { $this->cache_reject_reason = 'Requested URI contains query'; $this->process_status = 'miss_query_string'; return false; } }
I just delete everything in this, it was the easiest method to eliminate it without an error.
Kept just this:
/** * Skip if there is query in the request uri */ $this->_preprocess_request_uri(); if ( !empty( $this->_request_url_fragments['querystring'] ) ) { }
Not an elegant and correct method, but it works!
Mysteriously the problem disappeared!
Forum: Plugins
In reply to: [W3 Total Cache] Minify removes double quotes in inlined JS codeSo HTML Minify removes double quotes from inlined scripts (Javascript/JQuery/etc.). This results in an error in certain cases.
To prevent this in the file public_html/wp-content/plugins/w3-total-cache/lib/Minify/Minify/HTML.php in line 354:Modify this:
$m[3] = preg_replace_callback( '~([a-z0-9\\-])=(?<quote>[\'"])([^"\'\\s=]*)\k<quote>(\\s|>|/>)~i', array( $this, '_removeAttributeQuotesCallback'), $m[3] );
Into this:
$m[3] = preg_replace_callback( '~([a-z0-9\\-])=(?<quote>[\'])([^\'\\s=]*)\k<quote>(\\s|>|/>)~i', array( $this, '_removeAttributeQuotesCallback'), $m[3] );
- This reply was modified 3 years, 10 months ago by Zoltan Baffy.
- This reply was modified 3 years, 10 months ago by Zoltan Baffy.
Forum: Plugins
In reply to: [W3 Total Cache] Minify removes double quotes in inlined JS codeProblem solved!
Forum: Plugins
In reply to: [W3 Total Cache] Minify removes double quotes in inlined JS codeOr any solution to completely disable quotation mark removal in HTML?
- This reply was modified 3 years, 10 months ago by Zoltan Baffy.
Forum: Plugins
In reply to: [W3 Total Cache] When are cache files deleted?It doesn’t delete old files, instead it renames it to “old”, because it doesn’t need as much resources like if the files would be deleted.
Forum: Plugins
In reply to: [a3 Lazy Load] Serious problems with this plug-in!!!Solved! Cleaned browser cache…
I have this too!
Have you solved this problem? How?
Forum: Plugins
In reply to: [W3 Total Cache] Still on 0.9.2.5Forum: Fixing WordPress
In reply to: Number of visitors jumps up when I visit my siteNo. I watch the real-time analytics. They are separate visitors from various locations.
Forum: Fixing WordPress
In reply to: Site traffic is only high when I visit my site.I did it and tested it in the last 50 minutes.
No visitors on my site. After I logged out WP and returned to my site visitors started to flow.
Analytics plugin works well.
The problem is that my site doesn’t load for new visitors, they can’t access it or something like that.