Discussion:
Running WordPress "offline"?
Mike Walsh
2014-04-09 12:54:15 UTC
Permalink
I recall this question coming previously but I must not be phrasing my
Google query correctly because I can't find an answer.

I have WordPress running in a Virtual Machine which I use for development.
The majority of the time this works well for me. However, there are times
when I find myself without an Internet connection (e.g. yesterday on a 5+
hour airplane flight) where I can still get work done locally but WordPress
is verrrrrrrrrry sloooooooow because it is constantly reaching out for
resources (e.g. Gravatar, WordPress.org update server, etc.).

Is there a setting or hook or something that will cause the external
connections to either fail much quicker or not be attempted at all?

Mike
--
Mike Walsh - ***@gmail.com
Madalin Ignisca
2014-04-09 12:57:12 UTC
Permalink
You need to setup that way your virtual machine. Depends on what you use.
Post by Mike Walsh
I recall this question coming previously but I must not be phrasing my
Google query correctly because I can't find an answer.
I have WordPress running in a Virtual Machine which I use for development.
The majority of the time this works well for me. However, there are times
when I find myself without an Internet connection (e.g. yesterday on a 5+
hour airplane flight) where I can still get work done locally but WordPress
is verrrrrrrrrry sloooooooow because it is constantly reaching out for
resources (e.g. Gravatar, WordPress.org update server, etc.).
Is there a setting or hook or something that will cause the external
connections to either fail much quicker or not be attempted at all?
Mike
--
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
--
*Madalin Ignisca*
*web developer*
http://imadalin.ro/
Chloé Desoutter
2014-04-09 13:20:25 UTC
Permalink
Hi,

Hack your VM so the WordPress.org, etc. domain names will resolve to
nothing. Another option is to prevent DNS resolution at all so it will
simply error out.

You want it to fail instantly instead of failing late (after finding out
your VM can't reach its DNS server...)

Yours sincerely
Post by Madalin Ignisca
You need to setup that way your virtual machine. Depends on what you use.
Post by Mike Walsh
I recall this question coming previously but I must not be phrasing my
Google query correctly because I can't find an answer.
I have WordPress running in a Virtual Machine which I use for
development.
Post by Mike Walsh
The majority of the time this works well for me. However, there are
times
Post by Mike Walsh
when I find myself without an Internet connection (e.g. yesterday on a 5+
hour airplane flight) where I can still get work done locally but
WordPress
Post by Mike Walsh
is verrrrrrrrrry sloooooooow because it is constantly reaching out for
resources (e.g. Gravatar, WordPress.org update server, etc.).
Is there a setting or hook or something that will cause the external
connections to either fail much quicker or not be attempted at all?
Mike
--
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
--
*Madalin Ignisca*
*web developer*
http://imadalin.ro/
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Ryan McCue
2014-04-09 13:23:55 UTC
Permalink
Post by Mike Walsh
Is there a setting or hook or something that will cause the external
connections to either fail much quicker or not be attempted at all?
Add this to /etc/hosts in the VM:

127.0.0.1 wordpress.org
127.0.0.1 api.wordpress.org
127.0.0.1 planet.wordpress.org

It should cause your dashboard to fail basically immediately. :)
--
Ryan McCue
<http://ryanmccue.info/>
Daniel
2014-04-09 13:29:54 UTC
Permalink
There was a line that you can add into wp-config that will block
external requests. Not sure if that still the case.
Post by Ryan McCue
Post by Mike Walsh
Is there a setting or hook or something that will cause the external
connections to either fail much quicker or not be attempted at all?
127.0.0.1 wordpress.org
127.0.0.1 api.wordpress.org
127.0.0.1 planet.wordpress.org
It should cause your dashboard to fail basically immediately. :)
--
Ryan McCue
<http://ryanmccue.info/>
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
--
Regards,
Daniel Fenn
Frank Bueltge
2014-04-09 13:59:25 UTC
Permalink
I use this plugin and I can work offline
https://github.com/bueltge/WP-Offline

Liebe Grüße
Frank

__
http://bueltge.de
http://inpsyde.com
http://marketpress.com

Privat: +49 36428 169305 | Mobil: +49 170 5322053

Inpsyde GmbH, http://inpsyde.com, Mutzer Heide 3, 51467 Bergisch Gladbach
Steuernr: 204/5756/0999, Steueridentnr.: DE263849534
Geschäftsführender Gesellschafter: Heinz Rohé, HRB 65224, Amtsgericht Köln
Post by Daniel
There was a line that you can add into wp-config that will block
external requests. Not sure if that still the case.
Post by Ryan McCue
Post by Mike Walsh
Is there a setting or hook or something that will cause the external
connections to either fail much quicker or not be attempted at all?
127.0.0.1 wordpress.org
127.0.0.1 api.wordpress.org
127.0.0.1 planet.wordpress.org
It should cause your dashboard to fail basically immediately. :)
--
Ryan McCue
<http://ryanmccue.info/>
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
--
Regards,
Daniel Fenn
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Mike Walsh
2014-04-09 16:39:08 UTC
Permalink
This looks like it will do the trick, I will try it on the plane later
today.

Thanks,

Mike
Post by Frank Bueltge
I use this plugin and I can work offline
https://github.com/bueltge/WP-Offline
Liebe Grüße
Frank
__
http://bueltge.de
http://inpsyde.com
http://marketpress.com
Privat: +49 36428 169305 | Mobil: +49 170 5322053
Inpsyde GmbH, http://inpsyde.com, Mutzer Heide 3, 51467 Bergisch Gladbach
Steuernr: 204/5756/0999, Steueridentnr.: DE263849534
Geschäftsführender Gesellschafter: Heinz Rohé, HRB 65224, Amtsgericht Köln
Post by Daniel
There was a line that you can add into wp-config that will block
external requests. Not sure if that still the case.
Post by Ryan McCue
Post by Mike Walsh
Is there a setting or hook or something that will cause the external
connections to either fail much quicker or not be attempted at all?
127.0.0.1 wordpress.org
127.0.0.1 api.wordpress.org
127.0.0.1 planet.wordpress.org
It should cause your dashboard to fail basically immediately. :)
--
Ryan McCue
<http://ryanmccue.info/>
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
--
Regards,
Daniel Fenn
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
--
Mike Walsh - ***@gmail.com
Mike Walsh
2014-04-09 16:33:26 UTC
Permalink
This is the sort of solution I was looking for. I don't want me VM
permanently set to ignore these connections all the time, just when I am
not online. Does such a thing exist in wp-config.php?
Post by Daniel
There was a line that you can add into wp-config that will block
external requests. Not sure if that still the case.
Post by Ryan McCue
Post by Mike Walsh
Is there a setting or hook or something that will cause the external
connections to either fail much quicker or not be attempted at all?
127.0.0.1 wordpress.org
127.0.0.1 api.wordpress.org
127.0.0.1 planet.wordpress.org
It should cause your dashboard to fail basically immediately. :)
--
Ryan McCue
<http://ryanmccue.info/>
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
--
Regards,
Daniel Fenn
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
--
Mike Walsh - ***@gmail.com
Loading...