Jeremy Davis's picture

Restarting Apache should always work. So:

service apache2 restart

Although obviously, if you're deep in development, having to do that regularly will be a PITA!

TBH, I'm not 100% sure, but it should only be PHP's opcache that is doing the caching, so disabling that should be enough. I.e. as Vijay noted, in /etc/php*/apache/php.ini, adding opcache.enable=0 should do the trick. You'll need to restart Apache (as above) to enable that though. To double check it worked, have a look at the php info (on TurnKey LAMP, browse to http://<server_ip>/phpinfo.php).

Also a quick google turned up how to disable browser caching which may also be a thing in your case? I haven't tested it, but here's some links:
http://bertanguven.com/disable-caching-of-assets-in-apache
https://gist.github.com/JamieMason/3245483
https://askubuntu.com/questions/868413/can-i-turn-off-php-and-html-caching-both-within-an-apache-virtual-host-conf-file

FWIW the default virtual host site on TurnKey LAMP can be found at /etc/apache2/sites-available/000-default.conf

Hope that helps. Please post back to let us know if it does!