# Nocache do

**URL:** <https://www.ruby-forum.com/t/nocache-do/107045>\
**Category:** Rails\
**Created:** [June 17, 2007, 5:23am UTC](https://www.ruby-forum.com/t/nocache-do/107045 "2007-06-17T05:23:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gpygood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/67e7ee/32.png) [@gpygood](https://www.ruby-forum.com/u/gpygood)\
**Post date:** [June 17, 2007, 5:23am UTC](https://www.ruby-forum.com/t/nocache-do/107045/1 "2007-06-17T05:23:41Z")

</div>

eveybody know cache do  
\<%cache do%\>  
\<%end%\>

but,who know how to ‘nocache do’?

**this is cached**  
\<%nocache do%\>  
this is \<%=rand%\> not cached  
\<%end%\>  
**this is cached too**
