Option to render .less files each time in debug mode #112

Closed
JonKragh opened this Issue Nov 23, 2011 · 5 comments

Comments

Projects
None yet
2 participants

Hi,

I'm not sure if this is a new feature, but it looks like .less files are rendered once per app pool recycle (in debug mode) whereas I believe the used to render each time in a previous release.

I understand why this would be good in a lot of scenarios, but when tweaking .less files it can obviously be a pain.

I did this just temporarily while I tweak my .less files so that they render each time.
protected string RenderDebug(string name = null)
{
string content = null;
//if (!bundleCache.TryGetValue(name, out content))
// temp render each time
if(true)
{

Maybe there could be an option to force rendering?

Keep up the amazing work!
Cheers,
Jon

Owner

jetheredge commented Nov 23, 2011

Wow, that is really annoying. In 0.8 it appears that we are using the cache in debug mode. In previous versions we weren't using the cache in debug mode, I'm not sure why the code was switched to use the cache. I'm thinking that this was a misguided change. I'll look into it and we will likely revert the change in 0.8.3.

Owner

jetheredge commented Nov 23, 2011

I just committed a change which resolves this. I can see why it was written the way it was during the update, but in debug mode it really shouldn't be rendering anything from cache. We will see if anyone reports any issues with the change.

Awesome! I will download it now and try it out. Love Squishit!

Looks like it's working now w/ the latest from the master branch. Squishit is one of the best open source .Net web projects! So many things are RIGHT about it!

@JonKragh JonKragh closed this Nov 23, 2011

Owner

jetheredge commented Nov 23, 2011

Thanks! I'm glad you enjoy it, always nice to hear from a fan :-)

On Nov 23, 2011, at 7:02 AM, JonKraghreply@reply.github.com wrote:

Looks like it's working now w/ the latest from the master branch. Squishit is one of the best open source .Net web projects! So many things are RIGHT about it!


Reply to this email directly or view it on GitHub:
#112 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment