wamwebdev
Forum Replies Created
-
Forum: Plugins
In reply to: [W3 Total Cache] Purge post cache on updateHello,
I’ve finally got around to testing this properly. Adding /my_custom_post_type/* into the Purge Policy>Additional pages field does not cause all posts of that CPT to be purged when one is updated. Is that the expected behavior?
Regards
Forum: Plugins
In reply to: [W3 Total Cache] Purge post cache on updateHi – Sorry – I’ve been out of the office.
Thanks for the update. So I’m trying to understand the logic of this. If I include /events/* in the “Additional pages” field, with no other settings checked, does that mean that any update to any page or any other CPT post will cause a purge of all posts under /events/ ? Or would the purge only happen when an event post is updated?
Forum: Plugins
In reply to: [W3 Total Cache] Purge post cache on updateHi,
Yes. So for a given CPT, e.g. /events/, the goal would be to only purge the cache of the post being edited, e.g. /events/my-event-post/. I have several CPTs active on the site with many posts for each, so manually adding the post URLs to the Purge Policy would not be feasible. But is there a way to use a wildcard?
The majority of our post updates are about the content of the post, not the key details like title, dates or featured image. So purging an archive sometimes makes sense as well, but it usually isn’t necessary. Purging the whole site cache seems excessive for a single small update.
Regards
Forum: Plugins
In reply to: [W3 Total Cache] Possible to force cache priming on specified interval?Hi Marko,
“…you should also call the cron for specific job separately” – what do you mean exactly? Set up a separate cronjob for w3_pgcache_prime?
The essence of my problem is that the cache priming doesn’t happen if the cache lifetime of the page hasn’t expired yet. I understand this is fine for most sites, but when you have content changing at specific times and you want to refresh the cache in line with those times, it can’t be done reliably, from what I can see.
I’m wondering whether purging the cache in advance each time could be a way around this. I found another support thread related to this: https://ww.wp.xz.cn/support/topic/purge-cache-at-certain-times-of-days/ Obviously this would mean flushing ALL pages, which wouldn’t be ideal but maybe an option to test.
Forum: Plugins
In reply to: [W3 Total Cache] Possible to force cache priming on specified interval?Hi Marko,
Thanks for that information. My setup has just 2 URLs in the prime sitemap currently (it’s a staging site). I’m only interested in priming the cache for a particular set of URLs, as most of the site is fairly static content-wise. My Cron job calls wp-cron every minute, and the 2 URLs are generated in about 4 or 5 seconds.
I understand that this is in effect imitating users visiting pages and generating cached versions. But what I want to achieve is that the cache priming happens, without fail, every 15 minutes, irrespective of cache page lifetime or when a user last visited a one of the sitemap pages. Is this possible with W3TC?
Regards
Forum: Plugins
In reply to: [W3 Total Cache] Possible to force cache priming on specified interval?Hi Marko,
Thanks for the quick response. I will try to explain my query with an example:
If I have the cache object lifetime set at e.g. 3600s and the prime update interval set at e.g. 900s, the pages in the prime sitemap won’t be regenerated until they expire (after 3600s). What I’m asking is whether there’s a way to override this rule, such that primed pages are always regenerated at the update interval.
Obviously you could set the update interval and the cache lifetime to “match”, but due to the finite time it takes to prime a series of pages, and the fact that the pages won’t be regenerated unless they have completely expired, there’s too much room for user requests to potentially affect the update timing.
The reason I’m asking this is because we have content that is displayed differently depending on the time of day. This content is (typically) already published, and can change on the hour or half-hour. So the purge policy for published posts won’t work in this case.
I hope you now understand my query!
Regards
Forum: Plugins
In reply to: [We’re Open!] Add note to a specific dayHello,
Would it be possible to provide a %notes% replacement code? I’m looking for a way to provide a message that’s already conditional on %if_special_today%, and could be a string or null. So something like:
%if_open_today%My message here %if_special_today%%notes%%end%, the rest of the message.%end%
Thanks for building this plugin, by the way. Very useful and works well.
Regards
Hi,
Thanks for that update. I have just updated to 4.6.4 and now the group accordions are working correctly on the front end (contrary to my post above, they weren’t working after the 4.6.3 update, though the separate accordions were OK). There are still a couple of issues:
- Selecting multiple separate accordion blocks in the editor list view causes an unresponsive page.
- Existing group accordions are displaying a block error in the editor – “This block contains unexpected or invalid content.”. This is resolved if you “attempt block recovery” but I thought I’d just report it.
I’m using WordPress 6.5.2
Regards
- This reply was modified 2 years, 1 month ago by wamwebdev.
Thanks, Mark, for the quick response and useful info.