Continuing the discussion from Clear Cache memory in frappe:
I tried to use command as below.
bench clear-website-cache
bench clear-cache
but none of them work. The error saids. Anyone can help? Thanks.
service@erpnext3:~$ bench clear-website-cache
Usage: bench [OPTIONS] COMMAND [ARGS]...
Error: No such command "clear-website-cache".
service@erpnext3:~$
1 Like
try
bench --site sitename clear-website-cache
Hi @netchampfaris I got the result below. Dont know why it says there is not site folder?
service@erpnext3:~$ bench --site sitename clear-website-cache
Traceback (most recent call last):
File "/usr/local/bin/bench", line 11, in <module>
load_entry_point('bench', 'console_scripts', 'bench')()
File "/home/frappe/.bench/bench/cli.py", line 26, in cli
return frappe_cmd()
File "/home/frappe/.bench/bench/cli.py", line 87, in frappe_cmd
os.chdir(os.path.join(bench_path, 'sites'))
OSError: [Errno 2] No such file or directory: './sites'
Hi @makarand_b @netchampfaris is there any tutorial how to finish pull request? I cannot find any comprehensive one on forum. Thanks.
@Robert1112
bench --site [sitename] clear-website-cache
sitename here is to be replaced with whatever name of your site is
Hi @netchampfaris How to find out what sitename it is? I dont remember I define it before? Thank you so much!
If you are not remembering site name then do bench --site all clear-website-cache
Your sites are at location frappe-bench/sites.
5 Likes