Lasso Soft Inc. > Home

[compiler_nocache]

Linkcompiler_nocache
AuthorJason Huck
CategoryTechnical
Version8.5.x
Licensehttp://opensource.org/licenses/artistic-license.php
Posted18 Nov 2006
Updated16 Mar 2007
More by this author...

Description

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.

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.

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;

Comments

No comments

Please log in to comment

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft