opcache-reset.sh
#!/bin/bash # Rensa PHP opcache WEBROOT=/var/www/html/ RANDOM_NAME=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c13) echo "<?php opcache_reset(); ?>" > ${WEBROOT}${RANDOM_NAME}.php curl http://localhost/${RANDOM_NAME}.php rm ${WEBROOT}${RANDOM_NAME}.php