Title: timmen22's Replies | WordPress.org

---

# timmen22

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Page Cache automatically clears every 60 minutes](https://wordpress.org/support/topic/page-cache-automatically-clears-every-60-minutes/)
 *  Thread Starter [timmen22](https://wordpress.org/support/users/timmen22/)
 * (@timmen22)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/page-cache-automatically-clears-every-60-minutes/#post-8217149)
 * Solution:
 * In order to edit the lifetime of cached pages I exported the configuration settings.
   You can find it under the tab “General Settings”. Open the export and find/edit
   the ‘pgcache.lifetime’ value into the number you want. (time in seconds).
 * I think this value need’s to be editable through the admin panel. Maybe a great
   suggestion for a future update.
 * Once again, thanks for your help Charles! This topic can be closed.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Page Cache automatically clears every 60 minutes](https://wordpress.org/support/topic/page-cache-automatically-clears-every-60-minutes/)
 *  Thread Starter [timmen22](https://wordpress.org/support/users/timmen22/)
 * (@timmen22)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/page-cache-automatically-clears-every-60-minutes/#post-8216717)
 * I noticed that in my export the following value is set: pgcache.lifetime’ => 
   3600,
 * It looks like the value can’t be edited from the admin panel. Is there anyway
   to hook into the plugin without editing the core?
 * Thank in advance.
 * Tim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Page Cache automatically clears every 60 minutes](https://wordpress.org/support/topic/page-cache-automatically-clears-every-60-minutes/)
 *  Thread Starter [timmen22](https://wordpress.org/support/users/timmen22/)
 * (@timmen22)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/page-cache-automatically-clears-every-60-minutes/#post-8215939)
 * Thanks for helping me Charles.
 * The “expires header lifetime” value is set to 604800. I also removed the snippet
   since I am not using the community version. Thanks for pointing it out!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Page Cache automatically clears every 60 minutes](https://wordpress.org/support/topic/page-cache-automatically-clears-every-60-minutes/)
 *  Thread Starter [timmen22](https://wordpress.org/support/users/timmen22/)
 * (@timmen22)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/page-cache-automatically-clears-every-60-minutes/#post-8214629)
 * I have also looked into the active cron jobs, but I do not see anything which
   looks suspicious. The page cache flushes itself after exactly 3600 seconds (1hour)
   so it must be something like a cronjob.
 * If anyone can help me that would be great.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] On query string pages purge from cache is not working.](https://wordpress.org/support/topic/on-query-string-pages-purge-from-cache-is-not-working/)
 *  Thread Starter [timmen22](https://wordpress.org/support/users/timmen22/)
 * (@timmen22)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/on-query-string-pages-purge-from-cache-is-not-working/#post-7688698)
 * Hi Kimberly, thanks for helping me and excuse me for my slow response.
 * 1. The “empty cache” button is working perfectly fine. When I hit the button 
   the cache folder will be deleted entirely like it should.
 * 2. When I make changes on **domain.com/ **the cache on ** domain.com/?utm=23u42**
   is not purged so updates will not show.
 * Maybe it has to do with the https edits I made. I implemented them because without
   the edits purging the cache does not work at all. Please take a look at the edits
   below.
 *     ```
       I have noticed that the logic for determining if the page is HTTPS is just plain wrong in the latest version 0.9.4.1
   
       W3\PgCache.php around like 960
   
       if ($request_uri)
       $key = substr($request_uri, strtolower(substr($request_uri, 0, 8)) == 'https' ? 8: 7);
   
       Substring of a request uri from 0 to 8 will *never* evaluate to "https" and thus deleting keys never works for https pages.
   
       It should be https:// or substring 0,5 instead.
   
       Also get_post_urls function in W3\SharedPageUrls.php needs to be updated. post_permalink($post_id) needs to be changed to get_permalink($post_id), as the former has been deprecated by wordpress.
       ```
   
 * Did you test it on a **http** or **https** environment?
 * Please let me know if you have any suggestion.
 * Thanks
 * Tim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] HTTPS Purge From Cache Not working](https://wordpress.org/support/topic/https-purge-from-cache-not-working/)
 *  [timmen22](https://wordpress.org/support/users/timmen22/)
 * (@timmen22)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/https-purge-from-cache-not-working/#post-7136864)
 * Thanks for pointing out the flaw Benno007. Your solution is working. Nonetheless
   I still have an issue with purging the cache on query string pages.
 * **For example: **domain.com/?utm=23u42
 * It is impossible to purge the cache for the URL above. Does anyone know a solution?
 * Thanks!
 * Tim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Change Cache Directory](https://wordpress.org/support/topic/change-cache-directory-3/)
 *  Thread Starter [timmen22](https://wordpress.org/support/users/timmen22/)
 * (@timmen22)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/change-cache-directory-3/#post-7672564)
 * Hi again,
 * I noticed that the solution is working for the “enhanced” caching method. When
   I switch to the “basic” caching method purging the cache does not work.
 * It would be great if anyone can resolve the problem.
 * Thanks for helping me.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Change Cache Directory](https://wordpress.org/support/topic/change-cache-directory-3/)
 *  Thread Starter [timmen22](https://wordpress.org/support/users/timmen22/)
 * (@timmen22)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/change-cache-directory-3/#post-7672318)
 * Thanks for your quick response Kimberly.
 * Replacing the code solved my problem. Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Paid Memberships Pro - Content Restriction, User Registration, & Paid Subscriptions] PHP 7](https://wordpress.org/support/topic/php-7-40/)
 *  [timmen22](https://wordpress.org/support/users/timmen22/)
 * (@timmen22)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-40/#post-7188683)
 * Any update on this?
 * Best regards,
 * Tim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ajax Load More – Infinite Scroll, Load More, & Lazy Load] Including $alm_item results in load more button not working](https://wordpress.org/support/topic/including-alm_item-results-in-load-more-button-not-working/)
 *  Thread Starter [timmen22](https://wordpress.org/support/users/timmen22/)
 * (@timmen22)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/including-alm_item-results-in-load-more-button-not-working/#post-6975323)
 * I do not exactly know why it works but I found the **solution**:
 * At the end of the repeater template I had to insert <?php wp_footer();?> which
   results in the following code:
 *     ```
       <?php
       if($alm_item%2 == 1){
             echo '<div class="row row-center">';
          }
       ?>
   
       ///  loop
   
       <?php
       if($alm_item%2 == 0){
             echo '</div>';
          }
       ?>
       ```
   

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