Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I realized the title was weird, and that this was more of a feature request. Will this be a feature controllable from UI or a drush command at some point?
Yes, it would be nice to flag all listings from a certain connection/class for update. So if you wanted to refresh all Residential listings, you could do that... At minimum it would be cool to have a drush task to just automate the above SQL query, though...
Does drush rets-force-update also force downloading of photos again? I want to just flush the hash and reimport the data without having to reimport all the pics.
Love the module and camidoo's support video. One issue I'm seeing is on images. I'm in control of my own Linux web servers and have the module working. While the drush -u username rets-import works bringing in the textual information, it is not importing the images. If I click on the "Update RETS Data" tab on the note listing itself, it will import the images. But that's a pain for 7,500 listings. I've tried the steps outlined by other to set the hash to 0, and perform a drush import several times, but the images do not display unless I do an "Update RETS Data" from the node property itself.
Does anyone know how I could script the drush rets-force-update command. I have regular updates running on a crontab every hour using (drush -u admin -d rets-import) command. But the drush rets-force-update command expects a user input before it runs through. Is there a way of doing something like (drush rets-force-update all) I would like to be able to run this command at night just to be sure that all properties are updated.
Comments
Comment #1
camidoo commentedkinda, it's a bit of a manual task.
first run this statement on your database
Then run your import, that will force all listings to update.
Comment #2
webavant commentedI realized the title was weird, and that this was more of a feature request. Will this be a feature controllable from UI or a drush command at some point?
Comment #3
kevinquillen commentedI think we should add a button in the UI to do this, too. Not everyone will have direct database access.
Comment #4
stockliasteroid commentedYes, it would be nice to flag all listings from a certain connection/class for update. So if you wanted to refresh all Residential listings, you could do that... At minimum it would be cool to have a drush task to just automate the above SQL query, though...
Comment #5
j9 commentedDoes this
UPDATE drealty_listing SET hash = '0'have to be set back to whatever it was after the refresh-without-purge to resume normal updates via cron and rets-import?
Thanks!
Comment #6
camidoo commentedno, once it updates the listing on the next import it will recalculate the hash.
Additionally, there is a new drush command that will do this for you:
Comment #8
Exploratus commentedDoes drush rets-force-update also force downloading of photos again? I want to just flush the hash and reimport the data without having to reimport all the pics.
Would love to know.
Comment #9
ncswi commentedLove the module and camidoo's support video. One issue I'm seeing is on images. I'm in control of my own Linux web servers and have the module working. While the drush -u username rets-import works bringing in the textual information, it is not importing the images. If I click on the "Update RETS Data" tab on the note listing itself, it will import the images. But that's a pain for 7,500 listings. I've tried the steps outlined by other to set the hash to 0, and perform a drush import several times, but the images do not display unless I do an "Update RETS Data" from the node property itself.
Any help is vastly appreciated.
Comment #10
bloomt commentedDoes anyone know how I could script the drush rets-force-update command. I have regular updates running on a crontab every hour using (drush -u admin -d rets-import) command. But the drush rets-force-update command expects a user input before it runs through. Is there a way of doing something like (drush rets-force-update all) I would like to be able to run this command at night just to be sure that all properties are updated.
Comment #11
bloomt commentedComment #12
shauntyndall commentedThis seems like an outdated issue. If a solution was formulated please share it.