API "include LITE.PHP" vs REQUIRE_ONCE bootstrap.php

Discussion in 'Integration' started by booforum, Apr 17, 2017.

  1. booforum

    booforum aMember Pro Customer

    Joined:
    May 20, 2005
    Messages:
    180
    When doing load testing of a site I am developing that utilizes the aMember API.
    If I use the include("/amember/library/Am/Lite.php");
    Everything seems to be fine.

    If I use the alternative option
    require_once '/home/amember/bootstrap.php';
    Things seem to crash once a few hundred users start getting tested

    A couple of questions:
    1. Is these a positive/negative to use one or the other?
    2. Is there a reason why the bootstrap would cause things to start erroring out?
    Thanks!
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    1,642
    Hello,

    Am_Lite is lightweight class to access data about authenticated user (from session). Bootrstrap includes whole aMember code base.

    What do you want to achieve?

Share This Page