Legacy Documentation: Version 5.3
LanguageEnglish
  • C#
  • JS

Script language

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

Caching.MarkAsUsed

public static bool MarkAsUsed(string url, int version);

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.