Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added a WP_Feed_Cache_Memcache client using memcache as backend #74

Closed
wants to merge 1 commit into from
Closed

added a WP_Feed_Cache_Memcache client using memcache as backend #74

wants to merge 1 commit into from

Conversation

windix
Copy link

@windix windix commented Mar 21, 2014

Hi,

Some background on this change. So we have a multiple server setup -- one backend server and couple of frontend servers all with wordpress installed. To make it secure, only backend server can write to wordpress database and all the frontend servers are read-only. And wp-admin etc has been removed from all the frontend servers.

This setup runs fine in most of the cases (wp-cron is an exception but we have disabled it), until we added the RSS widget to sidebar. It seems the widget keeps last access time in wp_options table but in our setup frontend server cannot write to database:

WordPress database error UPDATE command denied to user 'blogro'@'12.34.56.78' for table 'wp_options' for query UPDATE `wp_options` SET `option_value` = ...

So I have modified the WP_Feed_Cache a little bit, when MEMCACHE_SERVER is defined, use WP_Feed_Cache_Memcache to cache the RSS last access time in memcache instead of DB.

@windix
Copy link
Author

windix commented Mar 21, 2014

This has been posted as https://core.trac.wordpress.org/ticket/27470

@windix windix closed this Mar 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant