17488 Posts in 4473 Topics by 1978 members
|Go to End|
27 September 2007 at 1:19pm Last edited: 27 September 2007 2:10pm
I have used ChildrenOf(about-us), which works fine, but when i change the page type (of the page on which the control is used (not the about-us page), it stops working...then the control ChildrenOf(about-us) does not have no children no more... - what am I doing wrong?
27 September 2007 at 2:25pm Last edited: 27 September 2007 2:35pm
Ok, it seems I solved this by creating a whole new page type... One of the main criticism of the whole silverstripe system would be that it seems I am forever "flushing" I am always saving and using the db/build?flush=1, while holding the shift key and still it does not do no nothing ;-) ... sometimes it takes forever for changes to be updated or for old information to disappear... this takes the fun away from the building, because you are working with "ghost" pages it seems.... Is there any way to improve this?
example... i load a page - i get some sort of php error.... I load again, I get an outdated page.... I load again, I get the new page...
part of this is that is also seems that I have to flush each page individually to update it.... How can I update the whole site AND the CMS all at once?
Core Development Team
28 September 2007 at 12:18am
are you clear about the difference between "?flush=1" and "/db/build" ?
The way you're talking it sounds like you might be unnecessarily running dbbuild, however in any case it would be good to get to the bottom of the caching issue you're having!
do others have this problem?
28 September 2007 at 12:27am
Yes, I think the difference between flush and db-build is that flush clears the cache and db-build rebuilds the database.
Maybe it is something to do with the cache of my isp or the webhost. however, I do not really have this problem with other sites.
28 September 2007 at 10:06pm
The same problem keeps coming back.... see first post. I think it has something to do with the site being in a directory like this http://www.myisp.com/www.myactualsite.co.nz/mysite/....
I am now pretty sure it is a bug, because it works for a little while and then just stops....
I am just downloading the latest release to see if it does a better job.
29 September 2007 at 2:03pm
I have added my code + templates
29 September 2007 at 5:05pm
It's true that ?flush=1 only seems to clear the cache of the current template. I've noticed this behaviour. Perhaps we need to either make it clear all templates (making the process longer, but a more worthwhile endpoint), or make a new command like ?flushall=1?
29 September 2007 at 5:19pm
I solved my own problem here... I had:
largeLeftPanelPage_controller extends Page_Controller
largeLeftPanelPage_Controller extends Page_Controller
Ok, lived and learned....
|Go to Top|