Kyle Duncan
Forum Replies Created
-
I posted incorrectly – the fix does work, thank you. However, can you confirm that the knowledge base is now out of date? https://support.cloudways.com/en/articles/5126470-how-to-install-and-configure-breeze-wordpress-cache-plugin#h_3f620cea69
It says that adding items in this field will CACHE each one, but in fact, adding items here IGNORES them for caching purposes (which is what I wanted and what now happens).- This reply was modified 2 months, 1 week ago by Kyle Duncan. Reason: Mistake
Forum: Plugins
In reply to: [Redirection] High CPU usage with redirects enabledI just tested your method, and the results are fantastic! CPU usage halved, even though there are now 34,000 redirects in place for all the permutations, and the hashtags are just passed through as you said (i see they’re actually maintained in the URL, which is fine, they don’t do any harm on the new site).
Thanks again John, for the great plugin and the tip!
Forum: Plugins
In reply to: [Redirection] High CPU usage with redirects enabledSorry I wasn’t clear. I don’t care about the hashtag value or saving it, I just want the redirect to work. So I meant: will both of these URLs:
http://www.test.com/oldsite
http://www.test.com/oldsite#12345redirect to this URL:
if the plain redirect is:
Redirect 301 /oldsite http://www.test.com/newsite
Forum: Plugins
In reply to: [Redirection] High CPU usage with redirects enabledGreat thank you John. So plain redirects will perform much faster than regexes? if that’s the case, I’ll definitely try 34,000 plain redirects instead of 17,000 regex redirects, sounds promising!
On the hashtag, will a URL with a hashtag match a plain redirect just fine?
so if the redirect is for /oldsite to http://www.test.com/newsite and somebody goes to http://www.test.com/oldsite#12345 will the plain redirect work?
Forum: Plugins
In reply to: [Redirection] High CPU usage with redirects enabledHi John!
Thanks very much for your quick reply. Could you explain what you mean by “plain redirects”? Do you mean like
Redirect 301 oldpath newpathrather than using conditions and rules? I might be able to turn off the “regex” option, but:- some articles will have been bookmarked by users with an annoying hashtag at the end because of our old comments system, and I wanted the redirects to work with or without the hashtag. Would I have to create 2 redirects for each article because of this?
- Some articles may have been bookmarked before or after friendly URLs were added to the old site, so I needed URLs like
/article/12345/AND/article/name-of-post-here/12345/to both work, hence the regex. I also can’t use a universal regex for all articles, because the old site’s friendly URLs are terrible and don’t nicely match the new wordpress URLs in most cases. So again, would I need 2 redirects for each article?
So re: the above issues, would I actually need 4 x 17,000 redirects in order to do it all without regexes? And, if I were to go that route, what would I need to do to setup a database index? Sorry if this is beyond the scope of your plugin, I’m not clear if you’re referring to a feature within your plugin or not.
And lastly, with putting the logic in PHP, could you point me in the direction of the kind of thing you’re thinking of?
Cheers
Thanks Mikko, that’s very helpful. Yes it seemed fine up to about 9,000-10,000 posts, then slowed right down.
The search itself is incredibly quick and very reliable, so I’d hate to use another service… maybe I just need to let the index run overnight to get the last 4,000 in once, then it’ll be automatic going forward.
Forum: Fixing WordPress
In reply to: Private posts don’t appear when post_type is array in WP_queryFor now, I’m fixing this by adding this capability to all users above subscriber:
$role = get_role(‘contributor’);
$role->add_cap(‘read_private_multiple_post_types’);
$role = get_role(‘author’);
$role->add_cap(‘read_private_multiple_post_types’);
$role = get_role(‘editor’);
$role->add_cap(‘read_private_multiple_post_types’);
$role = get_role(‘administrator’);
$role->add_cap(‘read_private_multiple_post_types’);Forum: Fixing WordPress
In reply to: Private posts don’t appear when post_type is array in WP_queryI’ve found the problem, but not sure how to fix it…
In /wp-includes/class-wp-query.php, line 2269, the $read_private_cap variable is set to ‘read_private_multiple_post_types’ because there’s an array of post types in the query. This isn’t a real capability registered with WordPress, so it always defaults to ‘false’ on line 2357, which is why private posts do not appear in results for logged in users when the query has an array of post_types set.
Is this a bug or an intended feature?
Forum: Plugins
In reply to: [Revisionize] Preview not workingHi Jamie, thanks for the quick reply! Yes, it was a ‘post_status’ change in my functions file causing the problem, fixed now.
Excellent – thanks for such a quick turnaround. Will that be included in the next release of WC, so my client can safely update it without losing the override i made?
(Also, hello from a fellow Cambridger!)
I’ve tested this, just by changing the includes file (replacing delete_post_meta with delete_transient), and it seems to work!
In the database the 3 meta fields belonging to the parent product still don’t update in the way they do if you manually save the product in WordPress, but the site does display the sale now – is that the expected behaviour with this patch?
Cheers!
Thanks Mike! Is the helper file something I need to find and update as well, as I don’t see that path in the plugin folder?
Forum: Plugins
In reply to: [Theme My Login] Working with bbPressThanks for the advice, Jeff.
Forum: Plugins
In reply to: [Theme My Login] Working with bbPressThanks Jeff that’s really helpful. I’ve actually managed to switch over to TML templates for Lost/Reset password and Login and Logout, and I’m not using Register, so I think I’m ok. But i might use this filter for the Your Profile page, as the bbPress profile is very different because of forum-specific user content.
I notice if somebody tries to visit Login/Lost pass/Reset pass/Register while they are logged in, they get redirected to the Login page but with the profile showing. is that correct? so the TML profile can appear on two pages (your profile and login)?
And lastly, is it right that the only way to disable wp-admin access is to enable themed profiles? I’m actually not using themed profiles on ANY user type, because i use bbPress entirely (except for administrator who use wordpress dashboard) but i’d like to keep your admin blocking functionality. maybe i should just use another plugin for that, since it’s kind of separate?
thanks again!
Hi there,
It seems that the Ajax Enhanced Layered Navigation paid-for plugin works correctly, it’s just the free widgets that come with WooCommerce that do not.
Cheers