Hosting
This topic contains 35 replies, has 10 voices, and was last updated by directory 9 years, 2 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: caching, hosting, php sessions, varnish
-
AuthorPosts
-
June 12, 2014 at 5:29 pm #4086
yes, correct
June 14, 2014 at 4:53 pm #4258I also have used Wpengine for all my sites for 4 years nearly.
I don’t use the switcher so am I correct in saying I’m fine?
The site is live http://www.floorinsite.com.
Cheers
June 14, 2014 at 4:55 pm #4260June 16, 2014 at 2:48 am #4325For those looking for more background, here’s a support article from WP Engine that explains the issues with php sessions, cookies and caching:
http://wpengine.com/support/cookies-and-php-sessions/
<caching-lesson>In a nutshell, php sessions (e.g. $_SESSION or session_start()) store temporary data about a specific visitor (e.g. location). Varnish cache, the most common front-end caching solution for high-volume hosts like WP Engine, stores static copies of pages to serve subsequent visitors without having to hit the database again. This kills session data since the second visitor to the same page will be served a cached copy of the page and never set or read the session data that makes it unique to the visitor. The only way to use php session data with Varnish is to selectively bypass caching on those pages that use the session data.</caching-lesson>
That said, WP Engine has a pretty good reputation for support, so I decided to push the point. It turns out that they will disable caching on any page you wish, all you need to do is submit a support ticket. I’ll assume this includes wildcards.
To that end, it would be really helpful to have a list of URLs that require session data. I know this is relative to the install and configuration, but if we had a starter list or at least some indication of how the session data is used, then we could pass this on to support folks.
Why? The benefits of managed hosting are huge for some (my firm hosts some clients on our own servers and others on managed services like Pantheon, Media Temple and WP Engine). Also, I don’t want to bypass the incredible performance benefits of varnish on an entire site just because one plugin chose to use php (instead of javascript) to store session info. I think it’s totally possible to host this plugin on a managed service with aggressive caching enabled, as long as we can isolate those pages that need to bypass the cache. Can we (I’m looking at you, Paolo) help make this happen?
June 16, 2014 at 4:01 pm #4345Hi Greg,
Thanks for sharing the info. That’s what my host is doing. He configures Varnish to work on GeoTheme and GeoDirectory pages that need and doesn’t need caching.
It’s also a managed WP hosting provider.
June 16, 2014 at 4:46 pm #4347Hi Greg,
when most of our GeoTheme customers asked them why WPEngine didn’t manage php sessions they were saying for security reasons, please use cookies instead. Which is non-sense.
Now they are saying Varnish can’t handle sessions.
THAT’S not true. The way they setup Varnish doesn’t handle sessions.
http://systemsarchitect.net/reading-php-session-from-varnish-cache/
I don’t understand why we should make our application worst, in order to make it work with 1 Hosting provider, that from what I read around, isn’t that exceptional after all…
http://wptavern.com/wp-engine-addresses-critics-following-damaging-expose-of-its-customer-support
http://chester.id.au/2012/10/24/my-experience-with-wpengine/
http://www.wpenginelostmysite.com/
http://www.matthewwoodward.co.uk/reviews/webhost-trusted-wp-engine-hijacked-business-avoid-them/
http://auditwp.com/wp-engine-seo-failboat/Thanks
June 16, 2014 at 6:36 pm #4356Thanks for the feedback, Paolo. First off, I didn’t write that WPEngine told me that “Varnish can’t handle sessions,” so careful with the attribution. They may very well have implemented (or plan to implement) memcached-based session storage. I don’t know enough yet about their configuration to say.
I’m sure the goal at WPEngine is to enable as many customers as possible to host their wp sites. I’m also sure that the goal for GeoDirectory is to get as many customers using this plugin and associated premium products as possible. My goal is to get sites built and hosted where they will work optimally to client expectations.
With that in mind, it’s in everyone’s best interest to collaborate on solutions. Your firm will likely make sell more product if you help clients find ways to make them work on any hosting platform. If you prefer to simply list links to articles that talk about why a certain platform sucks, well, I guess that’s another approach. 🙂
Anyway, I love GeoDirectory and I’m having a good ride so far with WPEngine. I’ll try to get them to play nice together and will share the results with others. If WPEngine doesn’t work out, I’ll move to one of the other 4 hosting platforms we use, including our own in-house hosting. In the end, I think it’s worth it for the knowledge gained.
June 16, 2014 at 7:34 pm #4362Hi Greg,
we wish GeoDirectory and GeoTheme could work 100% well with any hosting provider, that’s a fact, however it is very improbable due to the number of possible variable in server’s configurations.
WPEngine decided, for extreme caching purposes, to limit their offer. PHP session and cookies are not supported and they clearly say it here.
http://wpengine.com/support/cookies-and-php-sessions/
Before they told many GeoTheme customers, that it was for security reasons, now they say that due to the cache, PHP isn’t excecuted and any PHP code that looks for cookies or handles session variables will not work, simply because it is not running.
Unfortunately they don’t say it could be done, they prefer not to. Reason why I keep saying that WPEngine isn’t for applications, but for blogs and fairly static websites like Business Websites and Portfolios.
WordPress core doesn’t use Sessions, reason why I think WPEngine choose not to, but WordPress alone is a blogging platform. Even an ecommerce site wouldn’t work, because cart are handled with sessions cookies.
What do they suggest: To disable cache for all ecommerce pages!
Sections of the site, such as product pages, the cart, and the checkout page, need to be un-cached for all visitors.
Why would one want to pay $99 to host an ecommerce site if he can’t take advantage of cache and fast loading time? Which is what’s cool about them…
Same goes for GeoDirectory.
That said, I’ll talk to Stiofan and Vikas about this and check with them if we can find a viable alternative in order to make GD work with them too, but I really think it is almost impossible.
Thanks
June 16, 2014 at 7:45 pm #4363Oh, just to make things clear. Personally, I have nothing against WPEngine.
I simply think it is over hyped and not such a fantastic service, for the reasons I’ve mentioned and especially for thier price.
The links where just to confirm that I’m not the only crazy out there saying that their service doesn’t shine as much as their reputation would make you imagine.
June 19, 2014 at 4:23 pm #5095This reply has been marked as private.June 19, 2014 at 4:42 pm #5102https://account.servermanaged.it
Unfortunately the website is in Italian only.
Of course they are proficient in english and can provide all answer in english.
I think you can use googletranslate to workaround this problem. I suggested him to do an english version too.
Thx
July 2, 2014 at 3:07 am #7098Hi, guys, not sure what is wrong with WPEngine but location switcher on my site remembers the city user selected and keep it while browsing the site. Not quite sure if the share location works or not properly though. Can anyone share his experience with combining location switcher/share location with the WPEngine?
July 2, 2014 at 7:24 am #7128Hmm, looks like the location is not remembered in safari/ios.
July 2, 2014 at 4:16 pm #7243Hi pix3x,
the answer to your question is i previous replies to this post, here they are summed up: https://wpgeodirectory.com/support/topic/hosting/page/2/#post-4362
WPEngine doesn’t handle PHP sessions. You should ask them to uncache all GD pages of your website for it to work correctly…
Thx
July 3, 2014 at 12:13 pm #7355Hi, thanks for advice. I’d rather not change the hosting but it depends if WPEngine get it working. Could you help me with:
– a list of GD pages to pass to the host; are they all php files that are located in the plugin/add-ons folders?
– recommended WP manage host with servers in Europe and secured and fast as WPEngine? -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket