Jump to:

23450 Posts in 18899 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » ?flush=all not working

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

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

Page: 1
Go to End
Author Topic: 978 Views
  • Rossel
    Avatar
    Community Member
    18 Posts

    ?flush=all not working Link to this post

    ?flush=all or ?flush=1 does not work in any situation. everything else seems to be working fine.
    Has anyone had this happen before or know what might be causing this?
    I have no idea...

  • martimiz
    Avatar
    Forum Moderator
    1078 Posts

    Re: ?flush=all not working Link to this post

    I've never encountered it just 'not working'. I had some issues where erights were not set properly on building the silverstripe-cache for the first time, so that I got a 'not writable' error each time I used ?flush, but...

    So no errors? And your template (or yaml) changes are never aplied? Do you have the silverstripe-cache directory in your site root and is it writable?

  • Rossel
    Avatar
    Community Member
    18 Posts

    Re: ?flush=all not working Link to this post

    thanks martimiz, would have never noticed that.
    So the silverstripe-cache didnt exist so ive created it. ran dev/build?flush=all and the cache has been populated with files. however all I get in dev/build is an 'Enviroment Builder' title along with my base url and dev breadcrumbs but nothing else.

  • martimiz
    Avatar
    Forum Moderator
    1078 Posts

    Re: ?flush=all not working Link to this post

    So no list of database tables and fields? Might be an error along the way, that isn't displayed... Is your site in dev mode? Is your php.ini set to report errors? Uncle Cheese has a page on debugging SilverStripe on his site:

    http://www.leftandmain.com/silverstripe-tips/2010/09/08/8-common-silverstripe-errors-explained-and-solved/

    I'm not sure if it includes v3.x but it might give you some clues

    Note: basically the flush bit is what updates the SilverStripe cache files, the dev/build is what builds the database table. The combi does all If the silverstripe-cache dir is missing, SilverStripe will use the tmp directory, that doesn't always work well.

  • Rossel
    Avatar
    Community Member
    18 Posts

    Re: ?flush=all not working Link to this post

    Its strange, the database was generated, site was set to dev mode, php.ini was set to report errors and I had a look at the 8 common erros a few time and it didnt help. Dev/build works on its own but with ?flush=all or ?flush=1 it failed. (Had been trying to flush when adding a couple of modules)

    I ended up doing another clean install and this time it seems to work. I did noticed that my url would not redirect from mydomain.com.au/silverstripe/ to mydomain.com.au/silverstripe/install.php like normal, as i found this is in the .htaccess file but it seems to be ignored.

    When re-installing there were no errors in the installer. but it didnt create silverstripe-cache again, had to do that manually. It does seem to be all working fine at the moment. so thanks for your help @martimiz.

    978 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.