Immediately removes the current page from the compiler cache after processing.
Update: If called from within an include, it will now remove that include from the cache, instead of the calling page.
Parameters
none
Sample Usage
// use anywhere on the page
compiler_nocache;
Source Code
Click the "Download" button below to retrieve a copy of this tag,
including the complete documentation and sample usage shown
on this page. Place the downloaded ".inc" file in your
LassoStartup folder, restart Lasso, and you can begin using this
tag immediately.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
define_tag(
'nocache',
-namespace='compiler_',
-description='Immediately removes the current page or include from the compiler cache after processing.'
);
if(!var_defined('__cacheddocs'));
var('__cacheddocs') = set;
define_atend({
iterate($__cacheddocs, local('i'));
compiler_removecacheddoc(#i);
/iterate;
});
/if;
$__cacheddocs->insert(include_currentpath);
/define_tag;