addCacheList

Cache a request URL if it doesn't need processing. SphpBase::sphp_api()->addCacheList("index",100) Cache index Gate with all events and refersh interval is 100 seconds. Cache will update the index Gate with interval of 100 seconds.

Parameters
string $url

match for cache like cache "index" or "index-page"

#
int $sec = 0

Expiry Time in seconds -1 mean never expire

#
string $type = "Gate"

type = Default Gate mean url has Gate name only and response to all events basis on this Gate type = ce mean Gate-event cache only that event type = cep mean Gate-event-evtp cache only that event with that parameter type = e event on any Gate will be use cache Cache all index Gate responses for 1 hour addCacheList("index", 3600);

#