Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Caching.MarkAsUsed

static function MarkAsUsed(url: string, version: int): bool;
static bool MarkAsUsed(string url, int version);
static def MarkAsUsed(url as string, version as int) as bool

Description

Bumps the timestamp of a cached file to be the current time.

This allows you to keep files in the cache even if you are not explicitly loading them. Returns true if the url is cached.