[SOLVED] change php and html for tests without reboot

General discussion about RuneAudio. Do not post any support or feature requests here.

[SOLVED] change php and html for tests without reboot

Postby tatoosh » 13 Jan 2015, 11:07

How does the nginx work? By changing a php or html file for my testcode i have to reboot the raspberry pi to take effect.
What is a better solution for this?

Thx TaToosh
Last edited by tatoosh on 13 Jan 2015, 18:52, edited 2 times in total.
tatoosh
 
Posts: 50
Joined: 12 Jan 2015, 12:18

Re: change php and html for tests without reboot!?

Postby ACX » 13 Jan 2015, 13:13

You have to empty the PHP OPcache after the edits to see the result.
You have three ways to do that:
User avatar
ACX
RuneAudio co-founder
 
Posts: 1692
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: change php and html for tests without reboot!?

Postby tatoosh » 13 Jan 2015, 18:18

Thanks ACX,
is that a rune "feature" or normal for nginx?
Tatoosh
tatoosh
 
Posts: 50
Joined: 12 Jan 2015, 12:18

Re: [SOLVED] change php and html for tests without reboot

Postby ACX » 13 Jan 2015, 20:37

It's because we have PHP OPcache enabled to serve the pages in a faster way.
User avatar
ACX
RuneAudio co-founder
 
Posts: 1692
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: [SOLVED] change php and html for tests without reboot

Postby tatoosh » 10 Feb 2015, 17:58

I changed something in the header.php, did a reboot and a clear.Also i did a Browser Clear and refresh but i cant see my changes.
Where did i make a mistake?
tatoosh
 
Posts: 50
Joined: 12 Jan 2015, 12:18

Re: [SOLVED] change php and html for tests without reboot

Postby ACX » 11 Feb 2015, 01:23

tatoosh wrote:I changed something in the header.php, did a reboot and a clear.Also i did a Browser Clear and refresh but i cant see my changes.
Where did i make a mistake?

What did you edit exactly? A cache clear should be enough.
User avatar
ACX
RuneAudio co-founder
 
Posts: 1692
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

support RuneAudio Donate with PayPal


Return to General discussion

Who is online

Users browsing this forum: No registered users and 2 guests