appstract / laravel-opcache

Laravel Package for OPcache
MIT License
1.33k stars 118 forks source link

Purge behind htaccess #34

Closed mtx-z closed 7 years ago

mtx-z commented 7 years ago

Hello ! Thanks a lot for this really great package. I have my dev server behind a htaccess, and so the purge is answered with a 401 code. Any way to add password to the request from config ? thanks.

ovanschie commented 7 years ago

I think this will work; put in your env:

OPCACHE_URL=http://username:password@appurl.com

mtx-z commented 7 years ago

Cool ! Fast reply thanks :) I'll test it soon ! Thanks.

teuunn commented 7 years ago

Good luck. Tested it and works fine for me. I'll close the issue. Please reopen if it didn't solve your problem.