Re:Corcel – Use WordPress backend with Laravel or any PHP ap...
by saltybytes on Thursday June 27, 2024 @11:36AM
(#40811631)
How's Corcel different to using WP's own API? What are the pros / cons?
[ Parent
| on HN ]
Re:Corcel – Use WordPress backend with Laravel or any PHP ap...
by kayodelycaon on Thursday June 27, 2024 @12:49PM
(#40812489)
A direct database connection means almost all of your queries will work without any error handling. Using an API requires you to handle lost connection every time you make a request.
Direct database connections almost always are orders of magnitude faster, especially when joins are involved.