{"id":8532,"date":"2023-08-16T12:53:23","date_gmt":"2023-08-16T19:53:23","guid":{"rendered":"https:\/\/membermouse.com\/?post_type=ht_kb&#038;p=8532"},"modified":"2023-10-20T22:30:04","modified_gmt":"2023-10-21T02:30:04","slug":"configuracion-del-alojamiento-wp-engine","status":"publish","type":"ht_kb","link":"https:\/\/membermouse.com\/es\/docs\/configuring-wp-engine-hosting\/","title":{"rendered":"Configuraci\u00f3n de WP Engine Hosting"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/membermouse.com\/wp-engine\" target=\"_blank\" rel=\"noreferrer noopener\">WP Engine<\/a>&nbsp;offers a cloud-based, fully managed solution built specifically for hosting WordPress sites. In order to accomplish this they configure their servers in a very specific way and sometimes these configurations can interfere with MemberMouse. In order to ensure that MemberMouse works on your WP Engine server we suggest working with their support team to address the items outlined in this article.<br><br><strong>Note:<\/strong>&nbsp;The MemberMouse support team has no insight or control over how your WP Engine server is configured so the quickest way to address any issues is to work directly with&nbsp;<a href=\"https:\/\/my.wpengine.com\/support\" target=\"_blank\" rel=\"noreferrer noopener\">WP Engine Support.<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>They have an internal checklist to go through to ensure their environment is configured correctly to support MemberMouse.<\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Configuring Caching<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\"><a rel=\"noreferrer noopener\" href=\"https:\/\/membermouse.com\/wp-engine\" target=\"_blank\">WP Engine<\/a>&nbsp;uses fairly aggressive caching techniques that, unless accounted for, will cause issues with MemberMouse. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is a result of the nature of caching itself which takes a snapshot of pages and other resources the first time they're loaded and then on future requests pulls them from the cache instead of grabbing them from the server. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This works great for static pages and resources but if a page has any sort of dynamic functionality, like a lot of your pages will when you're using MemberMouse, you'll end up delivering an incorrect experience to your customers.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can control exceptions to the cache somewhat within your WPE dashboard. However, even with that configured, you should still contact WPE support and ask them to add &#8216;exceptions' to the &#8216;page cache' on your site. Specifically, you should exclude:<\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>All of the MemberMouse Core Pages (i.e. login, checkout, my account, confirmation, member homepage, etc)<br><br><\/li>\n\n\n\n<li>Any URLs associated with the particular payment services you're integrating with which can be found on the MemberMouse Payment Settings page (i.e. IPN callback URLs, silent post URLs, etc)<br><br><\/li>\n\n\n\n<li>Any page where you use MemberMouse SmartTags\u2122.<br><br><\/li>\n\n\n\n<li>Any page that should only be viewed by logged in members. e.g. if you have a &#8216;members' section and aren't showing excerpts to non-members.<\/li>\n<\/ul>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Note that by default, WP Engine will not serve cached pages for logged-in members. So you shouldn't have to add&nbsp;<em>all&nbsp;<\/em>member content to the exception list, just pages that might show dynamic content to logged out users. In general, you don't want to add an exception unless you notice an issue on that page.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is an example request you can send to WP Engine support to have&nbsp;the exceptions added. Make sure that you swap out these URLs for your&nbsp;actual URLs.<\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Hello,<br><br><br>I am using the MemberMouse membership plugin on my site ([insert your URL here]). In order to properly process checkouts and protect member content, can you please add the following URLs to the exception list for the page cache?<br><br>[insert links here]<br><br><br>Thanks!<br><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Using Content Delivery Network (CDN)<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Enabling the content delivery network (CDN) on WP Engine's platform prematurely could impact\/add to the cache issue mentioned above. The suggested workflow would be to hold off on adding a CDN until MemberMouse is functioning as intended. When everything is up and running, adding the CDN should perform correctly.<\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Social Login<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Social login requires that hosting providers support sessions. This is not by design; it's the 3rd party library we use internally to authenticate with the social network platforms that requires sessions.<br><br>WP Engine intentionally disable sessions. This message board for another social login plugin that was having the same issue, and perhaps WP Engine may be able to enable sessions:<br><br><a rel=\"noreferrer noopener\" href=\"http:\/\/wordpress.org\/support\/topic\/has-anyone-managed-to-make-it-work-with-wpengine-from-php-sessions-to-cookies\" target=\"_blank\">http:\/\/wordpress.org\/support\/topic\/has-anyone-managed-to-make-it-work-with-wpengine-from-php-sessions-to-cookies<\/a><br><br>You will also have to ensure that WP Engine has remove cache for paths and query arguments for the following folders and files paths:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\/wp-content\/plugins\/membermouse\/<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Query Arguments:<br>hauth.start<\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Limit Login Attempts<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\"><br>WP Engine installs their own limit login plugin in the mu-plugins directory as opposed to the normal plugins directory. This cannot be deactivated or removed. As a result, after a few attempts to login incorrectly, the account will be locked out for a set amount of time.<br><br>If you are comfortable editing php files, you can look to get around this by using the following code in the 2 files indicated. <strong>PLEASE NOTE: <\/strong>take a backup of your site before updating these files:<\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/-----------------------------------------------------------------------------\n\/\/ wp-content\/plugins\/membermouse\/hooks\/class.userhooks.php\n\/\/ starting at line 267\n$required_plugin = \"limit-login-attempts\/limit-login-attempts.php\";\n$pluginActive = false;\n            \n\/\/ detect by function, not file to support mu-plugins\n\/\/ if(in_array($required_plugin, $plugins))\nif(function_exists('limit_login_setup'))\n{\n    $pluginActive = true;\n}<\/code><\/pre>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/-----------------------------------------------------------------------------\n\/\/ wp-content\/plugins\/membermouse\/modules\/limit_login_attempts.php\n\/\/ starting at line 10\n$required_plugin = \"limit-login-attempts\/limit-login-attempts.php\";\n$pluginActive = false;\n \n\/\/ detect by function, not file to support mu-plugins\n\/\/ if(in_array($required_plugin, $plugins))\nif(function_exists('limit_login_setup'))\n{\n     $pluginActive = true;\n}<\/code><\/pre>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>WP Engine ofrece una soluci\u00f3n basada en la nube y totalmente gestionada, creada espec\u00edficamente para alojar sitios de WordPress. Para lograrlo, configuran sus servidores de una manera muy espec\u00edfica y, a veces, estos...<\/p>","protected":false},"author":20918,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_strive_editorial_status":"not-started","_strive_copy_of":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"ht-kb-category":[222],"ht-kb-tag":[],"class_list":["post-8532","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-resources-articles"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/ht-kb\/8532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/users\/20918"}],"replies":[{"embeddable":true,"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/comments?post=8532"}],"version-history":[{"count":0,"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/ht-kb\/8532\/revisions"}],"wp:attachment":[{"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/media?parent=8532"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/ht-kb-category?post=8532"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/membermouse.com\/es\/wp-json\/wp\/v2\/ht-kb-tag?post=8532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}