Title: Exclude URLs – (Memcache issues)
Last modified: January 9, 2023

---

# Exclude URLs – (Memcache issues)

 *  Resolved [pautgn](https://wordpress.org/support/users/pautgn/)
 * (@pautgn)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/exclude-urls-memcache-issues/)
 * Hi,
 * I use MemberPress and they here [https://docs.memberpress.com/article/298-how-to-set-up-popular-caching-plugins-with-memberpress#sgo](https://docs.memberpress.com/article/298-how-to-set-up-popular-caching-plugins-with-memberpress#sgo)
   recommend disabling Memcache in Siteground hosting. And I asked the reason to
   MemberPress support and a developer told me “We recommend disabling Memcache 
   because we found some issues every once and then (not each time) with signup 
   and accessing protected content when Memcache is on”.
 * If I exclude URLs in SG Optimizer, Will the exclusion also affect the Memcache?
   Or only the Dynamic cache and file-based cache?
 * If EXCLUDE URLS = the MemberPress signup pages and the protected pages: those
   exclusions inside SG Optimizer, will be applied to Memcache? I mean, for that
   URLS will it be the same effect having the Membcache = ON + they being excluded
   than having the Memcache OFF? Then I would be able to have Memcache=ON,…
 * And just to be sure, Can you clarify if “Exclude URLs” affects Dynamic caching
   + File-based Caching + Memcached? And “Exclude Post Types”?
 * Regards.

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Support [Simeon Boev](https://wordpress.org/support/users/k3llanved/)
 * (@k3llanved)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/exclude-urls-memcache-issues/#post-16356512)
 * Hello [@pautgn](https://wordpress.org/support/users/pautgn/),
 * The exclude feature in our plugin does not include Memcached. It will exclude
   pages and post types, however, objects stored in the Memcache service can not
   be excluded. Excluding pages related to the plugin will also not have the expected
   effect.
 * Best Regards,
 * Simeon Boev
 *  Thread Starter [pautgn](https://wordpress.org/support/users/pautgn/)
 * (@pautgn)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/exclude-urls-memcache-issues/#post-16357620)
 * Then I’m forced to have Memcache = OFF, right? Do you plan to make it compatible
   with MemberPress? It’s a premium plugin…
 * If I’m forced to have Memcache = OFF, Is it enough to put Memcache = OFF in the
   plugin SG Optimizer? Or Do I also need to put it = OFF inside Site Tools? (If
   in Site Tools it’s = ON and I have several WP installations in subdirectories
   for the same domain, so it’s the same Site Tools, Can I have it in SG Optimizer
   =OFF in some WP installations and = ON in others?).
 * About “Exclude Post types” VS “Exclude URLs” Can you please confirm that both
   affect Dynamic cache + File-based Caching?
 * And then if I want for example to exclude all the courses from LearnDash, Is 
   it the same to exclude the post type “courses” inside “Exclude Post types” than
   to write “/course/*” in “Exclude URLs”? So I understand only one of that is enough.
   Or is there any difference between that 2 exclude options? 
 * Regards.
 *  Plugin Support [Vladimir Trandev](https://wordpress.org/support/users/vtrandev/)
 * (@vtrandev)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/exclude-urls-memcache-issues/#post-16358417)
 * Hello [@pautgn](https://wordpress.org/support/users/pautgn/),
 * You can use “Exclude Post Types” in order to exclude all posts from the specific
   post type being cached by the Dynamic Caching and the File-based Caching. This
   will make sure all of them are served non-cached for all users.
 * As for “Exclude URLs from Caching”, you could exclude parts of your website from
   the cache. You could simply paste the relative path to the URL you want to exclude
   or the entire URL – we will parse it and add it into the right format. This function
   again works for both dynamic and file-based caching.
 * Regarding “Memcached’, we can not make such plugin excludes on our end, so I 
   would suggest you to keep the “Memcached” option deactivated but still benefit
   from the rest of our SiteGround Optimizer plugin’s features. As for your question,
   you can indeed keep the option “off” for some of your applications and “on” for
   others via the button in your WordPress dashboard > “SiteGround Optimizer – Caching”.
 * Regards,
 * Vladimir
 *  Thread Starter [pautgn](https://wordpress.org/support/users/pautgn/)
 * (@pautgn)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/exclude-urls-memcache-issues/#post-16359043)
 * Please can you confirm then that “Exclude Post Types” and “Exclude URLs from 
   Caching” both works the same way? Affecting both dynamic and file-based caching?
   Your Spanish documentation is not what is saying. It says that “Exclude Post 
   Types” only works for the dynamic cache.
 * [https://www.siteground.es/tutoriales/wordpress/sg-optimizer/supercacher/](https://www.siteground.es/tutoriales/wordpress/sg-optimizer/supercacher/)
 * “Excluir tipos de contenido de la caché: Con esta optimización, puedes excluir
   todas las publicaciones de cierto tipo de contenido específico que ser almacenadas**
   en la caché dinámica**. Esto asegurará que todos ellos se sirvan sin almacenamiento
   en caché para todos los usuarios.”
 * It only talks about “Dynamic cache”.
 * But your English version here:
 * [https://www.siteground.com/tutorials/wordpress/sg-optimizer/supercacher/](https://www.siteground.com/tutorials/wordpress/sg-optimizer/supercacher/)
 * “Exclude Post Types: With this optimization, you can exclude all posts from the
   specific post type being cached by **Dynamic Caching** and/or **File-based Caching**.
   This will make sure all of them are served non-cached for all users”.
 * Is talking about Dynamic + file-based.
 * Also here:
 * [https://es.wordpress.org/plugins/sg-cachepress/](https://es.wordpress.org/plugins/sg-cachepress/)
 * “Desde la opción de excluir tipos de contenido puedes excluir los que no quieras
   que almacene en caché la **caché dinámica**. Esta característica **no está disponible
   para la caché basada en archivos**.”
 * It says explicitly that it’s NOT available for the file-based cache.
 * +And regarding Memcache: How Can affect the global performance of the website
   to have Memcache = OFF? Will the front end be slower? Will I use more server 
   resources (CPU and memory)?
 * Regards.
 *  Plugin Support [Dimitar Petrov](https://wordpress.org/support/users/demiro/)
 * (@demiro)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/exclude-urls-memcache-issues/#post-16359514)
 * Thank you for the update, we appreciate your feedback. We will revise our knowledge
   base as soon as possible in order to assure consistent information.
 * Below you can find the exact caching layer affected by the mentioned plugin’s
   features:
 * **Exclude URLs from Caching** – Excludes the URL from Dynamic Cache and File-
   Based Cache.
 * **Exclude Post Types** – Excludes the Post type from the Dynamic Cache layer 
   only. _The File-Based cache will continue to be generated and served_.
 * Regarding the Memcached topic, deactivating the service could slow down the overall
   loading page and could increase the CPU usage. We recommend manual tests for 
   further confirmation of the results.
 * Best Regards,
   Dimitar
 *  Thread Starter [pautgn](https://wordpress.org/support/users/pautgn/)
 * (@pautgn)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/exclude-urls-memcache-issues/#post-16359767)
 * So, to really exclude from caching, I should use the “Exclude URLs from Caching”
   and NOT the “Exclude Post Types ”. Then I don’t understand the sense of the “
   Exclude post types”,… if, for example, I want to exclude all “courses” + “lessons”
   + “topics” from LearnDash they would be excluded from Dynamic cache but not from
   the file-based cache,… has it sense? Maybe it’s because I don’t understand what
   really is the file-based cache, but if those post-types have user-specific data
   like % progression of a course, I suppose that any kind of caching should be 
   avoided,… Am I wrong? Can you clarify?
 *  Plugin Support [Dimitar Petrov](https://wordpress.org/support/users/demiro/)
 * (@demiro)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/exclude-urls-memcache-issues/#post-16360029)
 * You are correct, if the pages contain such dynamic information, the cache should
   be avoided. I would recommend testing different combination of caching settings
   in order to achieve the best results.
 * Regards,
   Dimitar
 *  Thread Starter [pautgn](https://wordpress.org/support/users/pautgn/)
 * (@pautgn)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/exclude-urls-memcache-issues/#post-16360338)
 * But can you please clarify the sense of excluding only from the Dynamic cache
   but not from the file-based cache? Or in which situations have it sense? (I’m
   referring to what you said: “_Exclude Post Types – Excludes the Post type from
   the Dynamic Cache layer only. The File-Based cache will continue to be generated
   and served._”)
 * Regards.
 *  Plugin Support [Simeon Boev](https://wordpress.org/support/users/k3llanved/)
 * (@k3llanved)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/exclude-urls-memcache-issues/#post-16360560)
 * Our plugin includes three different types of caching that you could use. The 
   dynamic cache stores your content in the server’s memory for faster access with
   a full-page caching solution powered by NGINX. With the File-based cache, we 
   create static HTML versions of your website which will be served to future visitors.
   The files are stored in the browser’s memory.
 * Exclude post types works with the Dynamic Cache feature only. You can not exclude
   post types if you use File-based caching.
 * Best Regards,
 * Simeon Boev
 *  Thread Starter [pautgn](https://wordpress.org/support/users/pautgn/)
 * (@pautgn)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/exclude-urls-memcache-issues/#post-16361322)
 * Ok, thanks. If you revise your knowledge base I’d also recommend that you change
   the cache page of your plugin because it’s confusing. You should explain what
   you have told me in this post, inside the plugin configuration.
 * Also, the design of that cache page in your plugin is confusing: I assumed that
   the entire section below the 3 cache types, would apply to the 3 caches: Dynamic
   + File-based + Memcache. But if it doesn’t apply to Memcache, then you should
   put the Memcache in some different section,… and the same for the “Exclude post
   types” that you’ve told me that only affects the Dynamic cache,…
 *  Plugin Support [Georgi Ganchev](https://wordpress.org/support/users/georgiganchev/)
 * (@georgiganchev)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/exclude-urls-memcache-issues/#post-16361555)
 * Thank you for your feedback [@pautgn](https://wordpress.org/support/users/pautgn/),
 * We will pass your suggestion to the plugin developers.
 * Best regards,
   Georgi GanchevSiteGround.com

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Exclude URLs – (Memcache issues)’ is closed to new replies.

 * ![](https://ps.w.org/sg-cachepress/assets/icon-256x256.gif?rev=2971889)
 * [Speed Optimizer - The All-In-One Performance-Boosting Plugin](https://wordpress.org/plugins/sg-cachepress/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-cachepress/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-cachepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-cachepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-cachepress/reviews/)

 * 11 replies
 * 5 participants
 * Last reply from: [Georgi Ganchev](https://wordpress.org/support/users/georgiganchev/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/exclude-urls-memcache-issues/#post-16361555)
 * Status: resolved