Script to Clear cache periodicaly

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

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!

and make sure to disable the dstnat/redirection rule before those lines, and enable it again after.

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