Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

Caching.MarkAsUsed

Switch to Manual
public static function MarkAsUsed(url: string, version: int): bool;

Parameters

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.