Continuing the discussion from Clear Cache memory in frappe:
I tried to use command as below.
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".
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
File "/home/frappe/.bench/bench/cli.py", line 87, in frappe_cmd
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.
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.