Jump to content
salmiak

Bootstrapping ProcessWire: What's the difference of including index.php versus multi-instancing?

Recommended Posts

What are the differences between using the including and bootstrapping and multi-instance approach for using ProcessWire in an external script?

Obviously multi-instance would let you use more than one installation and in my environment multi-instance seems to perform (much) better under load.
Why would I choose one over the other?

Share this post


Link to post
Share on other sites
2 hours ago, salmiak said:

What are the differences between using the including and bootstrapping and multi-instance approach for using ProcessWire in an external script?

Let's say you have Site A, Site B and Site C. Site A and Site B are ProcessWire sites whereas Site C runs on something else (Laravel, WP, some PHP forum, etc).

You can use bootstrapping/include to access Site A whilst in Site A when in a CLI environment. You can also use bootstrapping to access Site A inside Site C.

To access Site B inside Site A or vice versa, you use multi-instance approach. i.e. one ProcessWire inside another ProcessWire instance (site).

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...