Link | compiler_nocache |
Author | Jason Huck |
Category | Technical |
Version | 8.5.x |
License | http://opensource.org/licenses/artistic-license.php |
Posted | 18 Nov 2006 |
Updated | 16 Mar 2007 |
More by this author... |
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.
// use anywhere on the page compiler_nocache;
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;
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft