Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

3.1 Silverstripe Templates not refreshing

Go to End

4 Posts   1017 Views


Community Member, 59 Posts

14 May 2014 at 1:57pm

I have a 3.1 site that whilst it was on my testing server I had no problems with it, but on the live server the templates won't refresh.
Things I have tried:

1. Adding ?flush=all to the url
2. Adding ?flush=1 to the url
3. Deleting the file, flushing the site (footer still appears), reloading and flushing
4. Deleting the entire templates folder, flushing the site (no effect), reloading and flushing
5. Deleting the silverstripe cache folder contents
6. running dev/build

In case I was having a stupid moment i also uploaded a straight test.html to the server, visited it on the website (it was there), deleted it, visited it again and got redirected to the error page. Which is what I expected.

Anyone know of any other way I might be able to solve this?


Community Member, 344 Posts

14 May 2014 at 8:59pm

Edited: 14/05/2014 9:00pm

I had the same problem due to a different configuration on my (shared) live server.

Everytime you use ?flush, I ended up with a redirect URL of ?flush=&flushtoken=xxx instead of ?flush=&flushtoken=xxx. So the flushtoken never got recognized by the framework and as a consequence ?flush was ignored.

I've added this to my _config.php:

if( Director::isLive() ) {
	// Overwrite arg_seperator.output
	// @see ParameterConfirmationToken->reloadWithToken()
	ini_set('arg_separator.output', '&');


Community Member, 59 Posts

15 May 2014 at 6:17pm

Thanks for your reply. Unfortunately that did not work either.

I have now completely deleted the site and freshly installed it with a clean database... and it is still showing the wrong

Hopefully the web host will look into it (although I did tell them about it and told them the easy check to see if the correct one is showing is that there should be a copyright symbol in it and they sent me back a screen shot saying it was there when clearly it is just the word copyright and not a symbol... so I don't have too much hope with them...).

i'm completely stumped.


Community Member, 541 Posts

22 May 2014 at 11:47am

Where is your template cache stored? I have had issues in the past with permissions on the cache directory that have meant I have been unable to delete cache files with flush=all.

Try manually deleting the folder if you can?