Title: Object Cache Code via .htaccess
Last modified: September 2, 2019

---

# Object Cache Code via .htaccess

 *  [Chris](https://wordpress.org/support/users/chrisnawojczyk/)
 * (@chrisnawojczyk)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/object-cache-code-via-htaccess/)
 * The AMP plugin works best with “object cache” enabled — the **newer method** 
   as opposed to the traditional built-in object cache that WordPress always had.
 * Aside from downloading a cache plugin, how complex is the code to integrate into.
   htaccess? I don’t use a caching plugin because I implement browser caching, expiry
   headers and gzip compression all with basic code.
 * Has there been a release of code that can be implemented the same way, without
   having to install and run another plugin? I searched the WordPress.org forums
   but could not find anyone talking about this particular inquiry. Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fobject-cache-code-via-htaccess%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/object-cache-code-via-htaccess/#post-11892081)
 * It depends on your host and server configuration. There may or may not be anything
   you can do in .htaccess. Ask your host if persistent object caching like memcached
   or reddis is available and how it can be enabled. If your host does not offer
   a solution, you’ll need to use a plugin.

Viewing 1 replies (of 1 total)

The topic ‘Object Cache Code via .htaccess’ is closed to new replies.

## Tags

 * [caching plugins](https://wordpress.org/support/topic-tag/caching-plugins/)
 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [object-cache](https://wordpress.org/support/topic-tag/object-cache/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/object-cache-code-via-htaccess/#post-11892081)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
