Skip Memcache and enable verbose logging

HI,

I am writing custom js for a separate app. The problem is whenever i change js file in doctype folder in a new module, it does not immediately reflect in browser, even after clearing browsers localstorage.

I have to purge memcache for the change to reflect.

a. I want to know if we can mock out memcache or skip it so that __js field is computed every time doctype is loaded.

Ref


Request URL:http://localhost:8080/

Form Data:

doctype:Indent
with_parent:1
cached_timestamp:
cmd:frappe.widgets.form.load.getdoctype
_type:GET

Response

{
  "docs": [
    {
      "__js": ""
    }
  ]
}

Need to update __js every time js file is updated without purging memcache

b. Also it will be really helpful if logger.debug and print msg are also dumped in log file.

Regards
Bhupesh

PS: in production everything is logged to a file in frappe-bench/logs. The above suggestion is for bench start

#####Thanks mate :smile: