Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Умный фильтр товаров добавить скрипт на очистку кеша


stug111
 Share

Recommended Posts

Стоит такая задача, необходимо написать скрипт для очистки кеша в модуле, который будет запускаться через крон. Так как при загрузке товаров через 1С необходимо постоянно чистить кеш. Не совсем понимаю как это реализовать.

Screenshot_3.png

Link to comment
Share on other sites


А просто поставить очистку на крон без танцев и бубнов, не вариант?

/usr/bin/wget -t 1 -O - 'http://___SITENAME____/index.php?route=module/brainyfilter/cron&key=___KEY_FROM_BRAINY_FILTER_THERE___'	

___SITENAME___ - адрес сайта

___KEY - ваш ключ для крон-задания от фильтра

Link to comment
Share on other sites

 

1 час назад, Eldaeron сказал:

А просто поставить очистку на крон без танцев и бубнов, не вариант?


/usr/bin/wget -t 1 -O - 'http://___SITENAME____/index.php?route=module/brainyfilter/cron&key=___KEY_FROM_BRAINY_FILTER_THERE___'	

___SITENAME___ - адрес сайта

___KEY - ваш ключ для крон-задания от фильтра

Попробовал так сделать /usr/bin/wget -t 1 -O - '___SITENAME___/index.php?route=extension/module/brainyfilter/cron&key=___KEY___' выдает 500 ошибку

 

Link to comment
Share on other sites


В 20.04.2018 в 09:38, stug111 сказал:

 

Попробовал так сделать /usr/bin/wget -t 1 -O - '___SITENAME___/index.php?route=extension/module/brainyfilter/cron&key=___KEY___' выдает 500 ошибку

 

К автору модуля, отвечают быстро. Потому что на сайте клиента он работает:

http://prntscr.com/j8bb08

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.