EmCacheHelper

Discussion here: https://bugs.limesurvey.org/view.php?id=14859 PR: https://github.com/LimeSurvey/LimeSurvey/pull/1273

since 2019-05-23
author

LimeSurvey GmbH

package

Default

Methods

cacheQanda

cacheQanda(array $ia,array $session = null)
static
todo

Setting per survey.

Don't cache questions with expressions.

Arguments

$ia

array

$session

array

Set $surveyinfo to null. Used by tests.

clearInit(): void
static

Flush cache for initialised survey.

flush(): void
static

Should be done at all places where the cache is invalidated, e.g. at save survey/question/etc.

Throws
\EmCacheException

if surveyinfo is not initialised.

Get cache value with $key for initialised survey.

get(string $key): mixed
static

Arguments

$key

string

Response

mixed

Set survey info used by this request.

init(array|null $surveyinfo = null): void
static
Throws
\InvalidArgumentException

if $surveyinfo is null.

Arguments

$surveyinfo

array|null

Set cache $value for $key for initialised survey.

set(string $key,mixed $value): void
static

Arguments

$key

string

$value

mixed

True if all conditions are met to use the emcache.

useCache(): boolean
static
todo

check ajaxmode

Response

boolean

Properties

Survey info from getSurveyInfo.

surveyinfo :array|null
static
var

Type(s)

array|null