qaws
Forum Replies Created
-
Forum: Plugins
In reply to: [Autoptimize] Autoptimize's cache size is getting big – part 3Resolved.
Forum: Plugins
In reply to: [Autoptimize] Autoptimize's cache size is getting big – part 3Hi Frank, thanks for checking ??
152 files, totalling 81898 Kbytes
So I maybe have a bit more work to do, but it’s much improved! And I now know the process to improve it.
Additionally, my Google Pagespeed results have returned up to their 71-85% level average, from around the high 50’s when I was having these issues.
Thanks for the help and for writing a useful plugin ??
Forum: Plugins
In reply to: [Autoptimize] Autoptimize's cache size is getting big – part 324 hours after making the changes, I only have 44 cached files totaling 18MB so I’m happy it’s working well now. I used to have 5000 files a day after emptying the cache. I’m thinking of writing up a short guide on how to find exclusions, so I will let you know.
Incidentally, what is the size limit that triggers the “cache might be getting too big” message?
Thanks for the help.
Forum: Plugins
In reply to: [Autoptimize] Autoptimize's cache size is getting big – part 3I’ve added the following to my “Exclude scripts from Autoptimize”:
- To fix the recaptcha code not running for Contact Form 7:
recaptchaCallback
- Jetpack installed (“Sharing” module):
window.WPCOM_sharing_counts
- Wordfence installed:
logHuman
If I empty my Autoptimize/W3TotalCache caches, then access a few of my posts, it doesn’t generate a js file for each one now. It looks like it’s generating 1 js for posts, another for pages, another set entirely for the mobile version of the site, and then the odd js file if the page contains obvious extra functions like youtube vids or embedded tweets. I’m expecting around 20-30 js files now, instead of the 5000 that it had generated since yesterday.
How does the “Exclude scripts from Autoptimize” function work? Does it just string find the entries listed in the “Exclude” box within each js it’s about to optimise, and exclude the js file if it finds a match? Does it have to be variable names, or can it also be things like DOM element names?
Additionally, WordPress has a ‘Compare’ feature built-in, when you are comparing post revisions. It would be really helpful if there was a way to use a comparison feature within Autoptimize, so users can compare similar CSS and JS files and discover which bits they need to exclude, without having to use custom tools to find which files need downloading, then finding a way to compare them, then finding how to fix it. This might solve lots of the “I have a really big cache, what do I do?” questions on this support forum, and make it easier for people to fix themselves.
Thanks for the help!
Forum: Plugins
In reply to: [Autoptimize] Autoptimize's cache size is getting big – part 3Thanks. I’ve checked across a number of posts and pages and I’m getting good results – 2 css & 1 js shared across all the posts, 2 css & 1 js shared across the pages, and a different (but shared) set of css & js across the mobile version of the site.
I’ll mark this as resolved when I’m happy it’s behaving as expected.
It might be worth adding “window.WPCOM_Sharing_counts” into the default scripts to exclude, or at least into the docs somewhere – Jetpack is quite popular ??
Forum: Plugins
In reply to: [Autoptimize] Autoptimize's cache size is getting big – part 3I’ve added the string “window.WPCOM_Sharing_counts” to “Exclude scripts from Autoptimize” and when I view 3 posts in the Inspect view of Chrome, Autoptimize is using the same 2 CSS files and the same 1 js file across all 3 posts. This looks very promising.
I used the process on this page to identify which was the variable I needed. It was an inline variable generated by Jetpack, and has a different value in the js for every post.
Forum: Plugins
In reply to: [Autoptimize] Autoptimize's cache size is getting big – part 3Okay I found something: Jetpack’s “Sharing” module puts the URL of the post into the javascript file (into the window.WPCOM_Sharing_counts variable), so Autoptimize is generating a different .js file for each post. This should still only generate a maxiumum of 1500 .js files if I only have 1500 posts?
It’s not clear from the documentation that this is expected behaviour – i.e. the downloads are protected and you can’t just paste the file url into a browser because it’s protected by a .htaccess file.
I’ve verified my file downloads correctly by using the PayPal sandbox to submit a transaction, and I can download the file successfully either from the e-mail receipt or from the Purchase Confirmation page.
This is a great plugin! Can I suggest you update the documentation so that new users understand how to test their new download successfully?
Thanks.
Forum: Plugins
In reply to: [Contact Form 7] reCAPTCHA doesn't displayForum: Plugins
In reply to: [Contact Form 7] reCAPTCHA doesn't displayThanks for this. Autoptimize was the culprit.
Forum: Plugins
In reply to: [Contact Form 7] reCAPTCHA doesn't displayThanks for the response.
You said “when WordPress Core goes into maintenance mode nothing works including plugins”, but the article you linked to says in the “When should I use a Maintenance Mode plugin?” section: “These plugins should return something called a http 503″…how can a plugin return a 503 if the plugins are not working?
I’ve followed the following article instead, which gives the code for the maintenance.php to return a 503 status and tells you to include pure HTML for the content of the page:
https://xtremelysocial.com/2010/how-to-make-an-awesome-maintenance-mode-screen-for-wordpress/I’ve created a maintenance.php file which sets the HTTP response to 503, and then uses pure HTML to render a page, but I haven’t tested it yet.
It would be good if your plugin created the maintenance.php file to set the 503 correctly, and then write some standard HTML in there (based on what we put in our plugin settings) which displays a really nice “Site Unavailable” page. Then, whenever the site is in Maintenance Mode, it displays the message without me needing to manually enable/disable it each time.
Forum: Plugins
In reply to: [Admin Columns] New HTTP 500 errors for Media LibraryHi David, sorry I didn’t test this, my e-mail notification from this post went astray.
I’ve upgraded to v2.23 of Media Library Assistant and I can confirm the fixes you added into this have worked. Thanks for the help!
It sounds like there’s also some recoding to be done by the Admins Column team based on your suggestions.
Yes, that’s fixed it. Thanks.
Forum: Plugins
In reply to: [Media Library Assistant] Add custom field for HTML?Hi David, yes that’s exactly what I’d like. I’ve sent my details through your link.
Thanks again, your help is really appreciated!
- To fix the recaptcha code not running for Contact Form 7: