Title: wrip's Replies | WordPress.org

---

# wrip

  [  ](https://wordpress.org/support/users/wrip/)

 *   [Profile](https://wordpress.org/support/users/wrip/)
 *   [Topics Started](https://wordpress.org/support/users/wrip/topics/)
 *   [Replies Created](https://wordpress.org/support/users/wrip/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/wrip/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/wrip/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/wrip/engagements/)
 *   [Favorites](https://wordpress.org/support/users/wrip/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 130 total)

1 [2](https://wordpress.org/support/users/wrip/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/wrip/replies/page/3/?output_format=md) …
[7](https://wordpress.org/support/users/wrip/replies/page/7/?output_format=md) [8](https://wordpress.org/support/users/wrip/replies/page/8/?output_format=md)
[9](https://wordpress.org/support/users/wrip/replies/page/9/?output_format=md) [→](https://wordpress.org/support/users/wrip/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Database for Contact Form 7, WPforms, Elementor forms] Entries list is empty](https://wordpress.org/support/topic/entries-list-is-empty/)
 *  Thread Starter [wrip](https://wordpress.org/support/users/wrip/)
 * (@wrip)
 * [3 months, 4 weeks ago](https://wordpress.org/support/topic/entries-list-is-empty/#post-18785159)
 * To clarify further, I am also using **Contact Form 7** and **Flamingo** plugins.
   They are both working fine.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance] How do I clear the Preload cache data?](https://wordpress.org/support/topic/how-do-i-clear-the-preload-cache-data/)
 *  Thread Starter [wrip](https://wordpress.org/support/users/wrip/)
 * (@wrip)
 * [7 months ago](https://wordpress.org/support/topic/how-do-i-clear-the-preload-cache-data/#post-18678240)
 * [@vupdraft](https://wordpress.org/support/users/vupdraft/) Thanks for letting
   me know. The screenshot I took was from the “Preload” tab. Next to the Run Now
   button, it shows the following information:
 *     ```wp-block-code
       Last preload finished at 6:23 pm, 17 September 2025
       ```
   
 * I wanted to completely remove the above preload cache information. I optimised
   database tables but that didn’t help.
 * My current WP-Optimize cache setting is as follows:
 *     ```wp-block-code
       Enable page caching: On"Automatically preload content after it is purged" checkbox: unticked"Generate separate files for mobile devices" checkbox: unticked"Serve cached pages to logged in users" checkbox: untickedCache lifespan: 8 hours
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance] Exclude pages with parameters from cache](https://wordpress.org/support/topic/exclude-pages-with-parameters-from-cache/)
 *  Thread Starter [wrip](https://wordpress.org/support/users/wrip/)
 * (@wrip)
 * [7 months ago](https://wordpress.org/support/topic/exclude-pages-with-parameters-from-cache/#post-18678238)
 * [@vupdraft](https://wordpress.org/support/users/vupdraft/) I think I had tried
   doing that as well but didn’t work.
 * Anyway, I changed Cache lifespan value from 24 hours to
 *     ```wp-block-code
       Cache lifespan: 8 hours
       ```
   
 * and removed the URLs (that I had initially added) from the exclusion list. This
   now seemed to have resolved the issue for me. It’s almost a week now and the 
   dynamic AJAX calls are working fine.
 * My AJAX implementation had custom nonce. I think the cache lifespan of 24 hours
   had some conflict with the custom nonce. After reducing it to 8 hours, all seemed
   to be working well. I still haven’t set the automatic preload enabled. I might
   give that a try as well. I hope that won’t cause any issues.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance] Exclude pages with parameters from cache](https://wordpress.org/support/topic/exclude-pages-with-parameters-from-cache/)
 *  Thread Starter [wrip](https://wordpress.org/support/users/wrip/)
 * (@wrip)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/exclude-pages-with-parameters-from-cache/#post-18663763)
 * Btw, my current settings are:
 *     ```wp-block-code
       Enable page caching: On"Automatically preload content after it is purged" checkbox: unticked"Generate separate files for mobile devices" checkbox: unticked"Serve cached pages to logged in users" checkbox: untickedCache lifespan: 24 hoursGzip compression: EnabledBrowser static file caching headers: Enabled and expiration set to 5 daysMinify: Not enabled
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance] Exclude pages with parameters from cache](https://wordpress.org/support/topic/exclude-pages-with-parameters-from-cache/)
 *  Thread Starter [wrip](https://wordpress.org/support/users/wrip/)
 * (@wrip)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/exclude-pages-with-parameters-from-cache/#post-18663170)
 * Hi [@deabiodun](https://wordpress.org/support/users/deabiodun/)
 * Thanks for your reply. Let me just share some of the things I tried with some
   addition questions.
 * I tried exclusion rules like this:
 *     ```wp-block-code
       /events/exhibitions/*/events/expos/*
       ```
   
 * When I did this, I noticed something isn’t working on the pages like this:
 *     ```wp-block-code
       https://mysite.com/events/exhibitions/abc-arts/?location=all&av=y
       ```
   
 * These parameters are dynamic AJAX calls that get triggered by radio buttons or
   dropdown selections on the /events/exhibitions/abc-arts/ page. I noticed that
   after adding the above exclusion rules, the AJAX calls didn’t display any results
   when the radio/dropdown were selected. I then removed the exclusion rules. Then
   the AJAX calls seemed to be working fine.
 * The WPO comment on the /events/exhibitions/abc-arts/ page always showed the following
   comment when I **directly visited** this page or if I **selected** the radio 
   or dropdown selections:
 *     ```wp-block-code
       Cached by WP-Optimize (gzip) - https://teamupdraft.com/wp-optimize/ - Last modified: 1 October 2025 9:21 am .... 
       ```
   
 * When I select the radio or dropdown selections, the page url appends parameters
   without refreshing the entire page. Is this actually caching the AJAX calls?
 * However, if I directly visited the page with the parameters _/events/exhibitions/
   abc-arts/?location=all&av=y_, I saw the following comment:
 *     ```wp-block-code
       WP Optimize page cache - https://teamupdraft.com/wp-optimize/ - Page not served from cache
       ```
   
 * Is this an expected behaviour?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Redirection] Giving access to Editors to a specific group only](https://wordpress.org/support/topic/giving-access-to-editors-to-a-specific-group-only/)
 *  Thread Starter [wrip](https://wordpress.org/support/users/wrip/)
 * (@wrip)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/giving-access-to-editors-to-a-specific-group-only/#post-18026171)
 * [@johnny5](https://wordpress.org/support/users/johnny5/) I had a look at the 
   developer page. It doesn’t look like I can grant permissions to the Editors to
   have access to only a certain group within the plugin. E.g. I created a group
   called “Temp Redirects” within the plugin. I want Editors to have access to this
   group only where they can add or delete redirections. Is this doable? I can’t
   see any specific Redirection permissions that allows me to do this.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast Duplicate Post] How do I Rewrite & Republish via API or programmatically?](https://wordpress.org/support/topic/how-do-i-rewrite-republish-via-api-or-programmatically/)
 *  Thread Starter [wrip](https://wordpress.org/support/users/wrip/)
 * (@wrip)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/how-do-i-rewrite-republish-via-api-or-programmatically/#post-17179508)
 * [@lopo](https://wordpress.org/support/users/lopo/) Sorry for the late reply. 
   That worked perfectly as expected. Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Ultimate CSV Importer – Import CSV, XML & Excel into WordPress] Imported posts saved inside the Classic editor instead of the Gutenberg blocks](https://wordpress.org/support/topic/imported-posts-saved-inside-the-classic-editor-instead-of-the-gutenberg-blocks/)
 *  Thread Starter [wrip](https://wordpress.org/support/users/wrip/)
 * (@wrip)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/imported-posts-saved-inside-the-classic-editor-instead-of-the-gutenberg-blocks/#post-17098707)
 * Thanks, will check this out!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast Duplicate Post] How do I Rewrite & Republish via API or programmatically?](https://wordpress.org/support/topic/how-do-i-rewrite-republish-via-api-or-programmatically/)
 *  Thread Starter [wrip](https://wordpress.org/support/users/wrip/)
 * (@wrip)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/how-do-i-rewrite-republish-via-api-or-programmatically/#post-17049797)
 * Can someone from Yoast respond to this and let us know how to do this?
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Uploading images to Media Library by URL via the API](https://wordpress.org/support/topic/uploading-images-to-media-library-by-url-via-the-api/)
 *  Thread Starter [wrip](https://wordpress.org/support/users/wrip/)
 * (@wrip)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/uploading-images-to-media-library-by-url-via-the-api/#post-16982108)
 * [@alanfuller](https://wordpress.org/support/users/alanfuller/) Yes, I’ve managed
   to resolve this using a custom endpoint.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Issues when using taxonomies and custom post types in the URL](https://wordpress.org/support/topic/issues-when-using-taxonomies-and-custom-post-types-in-the-url/)
 *  Thread Starter [wrip](https://wordpress.org/support/users/wrip/)
 * (@wrip)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/issues-when-using-taxonomies-and-custom-post-types-in-the-url/#post-16908278)
 * [@bcworkz](https://wordpress.org/support/users/bcworkz/) All good now. I had 
   been over-complicating the logic. Thanks for your tips.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Issues when using taxonomies and custom post types in the URL](https://wordpress.org/support/topic/issues-when-using-taxonomies-and-custom-post-types-in-the-url/)
 *  Thread Starter [wrip](https://wordpress.org/support/users/wrip/)
 * (@wrip)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/issues-when-using-taxonomies-and-custom-post-types-in-the-url/#post-16898364)
 * [@abretado1985](https://wordpress.org/support/users/abretado1985/) Simply registering
   the post type and taxonomy; and then re-saving the Permalinks did not automatically
   load the content on this URL: `https://www.example.com/books/arts/modern/sample-
   book/`. This needed additional rewrite rules (see below) and permalink rewrites.
 * [@bcworkz](https://wordpress.org/support/users/bcworkz/) Yes, I’ve managed to
   fix the issue by using the `add_rewrite_rule()` function inside the `init` hook.
   I have a couple of questions in regards to the efficiency of the code.
 * In my code, the rewrite rule includes nested `foreach()` statements that generates
   several of these rewrite rules to capture `parent/child hierarchical taxonomy
   terms` like the following (there might be hundreds):
 *     ```wp-block-code
       https://www.example.com/books/arts/modern/sample-book/
       https://www.example.com/books/arts/african/book-2/
       https://www.example.com/books/arts/tattoo/needle-works/
       https://www.example.com/books/comedy/classics/comedy-book-1/
       https://www.example.com/books/crime/europe/crime-book-mafia/
       https://www.example.com/books/crime/asia/crime-book-japan/
       https://www.example.com/books/drama/classics/romeo-and-juliet/
       https://www.example.com/books/drama/comedy/hello-world/
       https://www.example.com/books/cars/classics/history-of-cars/
       ```
   
 * This is the code:
 *     ```wp-block-code
       function book_category_rewrite_rule() {
           $parent_terms = get_terms(...); // Get parent terms
   
           foreach( $parent_terms as $parent_term ) {
               $child_terms = get_terms(....); // Get child terms
               foreach( $child_terms as $child_term ) {
                   add_rewrite_rule( '^books/' . $parent_term->slug.'/'.$child_term->slug . '/([a-z0-9-]+)[/]?$', 'index.php?books=$matches[1]', 'top' );
               }
           }
       }
       add_action( 'init', 'book_category_rewrite_rule' );
       ```
   
 * Does this always need to be fired from the `init` hook or can this be fired from
   other hooks? I was wondering if this could potentially slow down the site if 
   this gets fired on every page load.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [‘Category’ page is showing 404](https://wordpress.org/support/topic/category-page-is-showing-404/)
 *  Thread Starter [wrip](https://wordpress.org/support/users/wrip/)
 * (@wrip)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/category-page-is-showing-404/#post-16898178)
 * My expectation is that `/news/category/` by default should list all the categories
   or at least display something rather than returning “page not found”. It could
   just list the categories such as “development”, “design”, etc. Having a slug 
   in a URL that returns “page not found” is just doesn’t seem right to me.
 * Anyway, I’ve figured out a solution for this. I still don’t fully understand 
   why this was not done by default.
 * Keeping with the same structure as the News in the example above, this is what
   I tested:
 * **Under Dashboard > Pages:**
 * _I created a new Category page._
 * News (Posts Page) (/news/)
   — Category (/news/category) – This tied up with page.
   php template (or page-category.php)
 * Development (/development) – This tied up with page.php template
 * **Under Dashboard > Categories:**
 * Development (/news/category/development/) – This tied up with archive.php template
 * **Under Dashboard > Posts:**
 * Development (/news/development/) – This tied up with single.php template
 * This worked for me and had no conflict with anything. I also tried something 
   similar with my CPTs. They are all working fine.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Max Mega Menu] Pro version pre-sale questions](https://wordpress.org/support/topic/pro-version-pre-sale-questions-2/)
 *  Thread Starter [wrip](https://wordpress.org/support/users/wrip/)
 * (@wrip)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/pro-version-pre-sale-questions-2/#post-16886158)
 * Thanks Tom. I didn’t realise there was a demo menu on your site earlier.
 * I think that answers my questions.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ultimate Endpoints With Rest Api] Generating New Api Secret causes critical error](https://wordpress.org/support/topic/generating-new-api-secret-causes-critical-error/)
 *  [wrip](https://wordpress.org/support/users/wrip/)
 * (@wrip)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/generating-new-api-secret-causes-critical-error/#post-16781747)
 * Yes, it seems to have issues with PHP 8.
 * Looks like anything within the `count(...)` function needs to add array `count((
   array)...)`
 * I’ve already noticed this in `/admin/api_new.php` and `/includes/functions.php`.
 * Could you fix this?

Viewing 15 replies - 1 through 15 (of 130 total)

1 [2](https://wordpress.org/support/users/wrip/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/wrip/replies/page/3/?output_format=md) …
[7](https://wordpress.org/support/users/wrip/replies/page/7/?output_format=md) [8](https://wordpress.org/support/users/wrip/replies/page/8/?output_format=md)
[9](https://wordpress.org/support/users/wrip/replies/page/9/?output_format=md) [→](https://wordpress.org/support/users/wrip/replies/page/2/?output_format=md)