Title: Preload question
Last modified: March 26, 2020

---

# Preload question

 *  Resolved [marcorroma](https://wordpress.org/support/users/marcorroma/)
 * (@marcorroma)
 * [6 years ago](https://wordpress.org/support/topic/preload-question-3/)
 * Hello,
    I have activated the preload. How can I exclude only tags? I have a site
   with many tags. I wish only the homepage and categories were preloaded. Thank
   you

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

 *  Plugin Author [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/)
 * (@m_uysl)
 * [6 years ago](https://wordpress.org/support/topic/preload-question-3/#post-12592228)
 * Hi [@marcorroma](https://wordpress.org/support/users/marcorroma/),
 * You can use `powered_cache_preload_taxonomies` filter to control which terms 
   are being preloaded.
 * [https://github.com/skopco/powered-cache/blob/master/extensions/preload/inc/class-powered-cache-preload-process.php#L157](https://github.com/skopco/powered-cache/blob/master/extensions/preload/inc/class-powered-cache-preload-process.php#L157)
 * something like:
 *     ```
       add_filter( 'powered_cache_preload_taxonomies', function ( $taxonomies ) {
       	unset( $taxonomies['post_tag'] );
   
       	return $taxonomies;
       } );
       ```
   
 * Should work
 *  Thread Starter [marcorroma](https://wordpress.org/support/users/marcorroma/)
 * (@marcorroma)
 * [6 years ago](https://wordpress.org/support/topic/preload-question-3/#post-12592378)
 * I can do this for categories (on line 157):
    $taxonomies = apply_filters( ‘powered_cache_preload_taxonomies’,
   array(‘category’ => ‘category’ ) );
 * How can I add the homepage and pages?
 * Ps. do I add the code you suggested to the functions.php of my theme, or modify
   the /preload/inc/class-powered-cache-preload-process.php file?
    -  This reply was modified 6 years ago by [marcorroma](https://wordpress.org/support/users/marcorroma/).
 *  Plugin Author [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/)
 * (@m_uysl)
 * [6 years ago](https://wordpress.org/support/topic/preload-question-3/#post-12592691)
 * Hi [@marcorroma](https://wordpress.org/support/users/marcorroma/) ,
 * Please don’t edit the plugin files, try with functions.php or create a PHP file
   inside the `mu-plugins` directory.
 * > How can I add the homepage and pages?
 * All publicly queryable post types should be preloaded by default. Doesn’t it 
   work?
 *  Thread Starter [marcorroma](https://wordpress.org/support/users/marcorroma/)
 * (@marcorroma)
 * [6 years ago](https://wordpress.org/support/topic/preload-question-3/#post-12592769)
 * What should I create in that folder? I have never used mu-plugin. Is it like 
   a theme child?
    Can you give me an example?
 *  Thread Starter [marcorroma](https://wordpress.org/support/users/marcorroma/)
 * (@marcorroma)
 * [6 years ago](https://wordpress.org/support/topic/preload-question-3/#post-12628360)
 * Sorry if I come back with the topic.
    So with the code you wrote me, if inserted
   in my theme’s functions.php, does it exclude the tags from the preload? Is there
   a way to check if only categories are preloaded?
 * It would be good for me if you could also preload the last 15 posts published.
   Do you think it’s possible?

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

The topic ‘Preload question’ is closed to new replies.

 * ![](https://ps.w.org/powered-cache/assets/icon.svg?rev=2796939)
 * [Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score](https://wordpress.org/plugins/powered-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/powered-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/powered-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/powered-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/powered-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/powered-cache/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [marcorroma](https://wordpress.org/support/users/marcorroma/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/preload-question-3/#post-12628360)
 * Status: resolved