You are here

public static function UltimateCronSignalCache::set in Ultimate Cron 7.2

Set signal.

Parameters

string $name: The name of the job.

string $signal: The name of the signal.

Return value

bool TRUE if the signal was set.

File

./ultimate_cron.cache-signal.inc, line 67
File containing functions for Ultimate Cron signal handling using cache.

Class

UltimateCronSignalCache
Class for handling Ultimate Cron signals.

Code

public static function set($name, $signal) {
  $bin = variable_get('ultimate_cron_signal_cache_bin', 'signal');
  cache_set("signal-{$name}-{$signal}", TRUE, $bin);
  return TRUE;
}