Community discussions

MikroTik App
 
o_hawchar86
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 67
Joined: Sun Nov 26, 2006 8:59 am

Script to Clear cache periodicaly

Tue Jan 20, 2009 12:18 pm

i wrote these lines
it's 2.9.50

/ip web-proxy set enabled=no
/ip web-proxy clear-cache
/ip web-proxy set enabled=yes

but it doesn't work i woke up the next day to see that the web-proxy is only disabled !! what's wrong
 
valens
Trainer
Trainer
Posts: 244
Joined: Tue Jun 01, 2004 5:42 pm
Location: INDONESIA
Contact:

Re: Script to Clear cache periodicaly

Tue Jan 20, 2009 2:32 pm

I try to test on 3.18 (sorry, doesn't have same version to test):

/ip proxy set enabled=no
/ip proxy clear-cache
/ip proxy set enabled=yes

it works!
 
valens
Trainer
Trainer
Posts: 244
Joined: Tue Jun 01, 2004 5:42 pm
Location: INDONESIA
Contact:

Re: Script to Clear cache periodicaly

Tue Jan 20, 2009 2:35 pm

and make sure to disable the dstnat/redirection rule before those lines, and enable it again after.
 
o_hawchar86
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 67
Joined: Sun Nov 26, 2006 8:59 am

Re: Script to Clear cache periodicaly

Wed Jan 21, 2009 9:13 pm

why proxy and not web-proxy cuz i am using web-proxy but it doesn't work :(

Who is online

Users browsing this forum: eldoncito2019 and 63 guests