/** * Model Save() method should call this to indicate that a table has changed. * * @param string $strTableName * @throws QCallerException */ public static function MarkTableModified($strDbName, $strTableName) { parent::MarkTableModified($strDbName, $strTableName); if (!static::$objCache) { static::initCache(); } $key = static::GetKey($strDbName, $strTableName); $time = microtime(); self::$objCache->Set($key, $time); }
/** * Executes action on the given cache object * @param QAbstractCacheProvider $objCache The cache object to apply this action to. */ public function Execute(QAbstractCacheProvider $objCache) { $objCache->DeleteAll(); }