Displaying 3 results from an estimated 3 matches for "websitedomain".
2006 Jan 17
9
using "find" when you have 2 has_many relations
An Account has_many Websites which in turn has_many WebsiteDomains
Now I can of course do this:
@domains = Account.find(1).websites.find(1).website_domains.find(:all)
To get all the domains for Account with id 1 and Website with id 1.
I would like to do something like this though:
@domains =
Account.find(1).websites.find(:all).website_domains.find(:all)
IE, ge...
2011 Mar 11
4
Server locking up everyday around 3:30 AM - (INFO: task wget:13608 blocked for more than 120 seconds) need sleep, help.
...RAM, etc... Spent an hour on the phone with a Dell
tech. No hardware issues, at least that we were able to find.
There are no cron jobs that run at 3:30, no backups, the server has a
load of 0, nothing is scheduled around that time...
The only crontab entry at all is "*/5 * * * * wget -q
www.websitedomain.com/cron.php >/dev/null 2>&1"
They are running Magento for commerce purposes and this runs every 5 minutes.
Why does the server only lockup around 3:30 AM? Because it's knows I
am fast asleep?
I was able to pull this from /var/log/messages, this happens just
seconds before lock...
2006 Jan 20
4
Prepending table names on a per user or sub domain basis
Here is a sample of the database structure I want to have:
someclientname-websites
someclientname-canned_responses
someclientname-canned_responses_websites
anotherclientname-websites
anotherclientname-canned_responses
anotherclientname-canned_responses_websites
As you can see I want to prepend the name of my future clients to the
table name so that they use completely different sets of data.
I