limeybloke
Forum Replies Created
-
Forum: Plugins
In reply to: [Proxy Cache Purge] Purge on new Posts in clearing all cacheDid you get it working with the VCL?
Forum: Plugins
In reply to: [Proxy Cache Purge] Purge on new Posts in clearing all cacheThanks
I’ll check varnish version.
Can you share the complete VCL you are using ?
Forum: Plugins
In reply to: [Proxy Cache Purge] Purge on new Posts in clearing all cacheI was using the Dreamhost VCL for purging seen here
https://github.com/dreamhost/varnish-vcl-collection/blob/master/lib/purge.vcl
Note there appears to be some reference to /
Could this be the problem?
Forum: Plugins
In reply to: [Proxy Cache Purge] Purge on new Posts in clearing all cacheHi Mike,
But it’s not the front page that’s being cleared here. That is as well.
So when I post all pages are cleared.
Forum: Plugins
In reply to: [Proxy Cache Purge] Purge on new Posts in clearing all cacheThis is very weird. I’ve just run a few more tests.
I switched off the plugin.
Made a change to a content page that doesn’t have the side panel on.
Switched the plugin back on.
Posted a new post.
And checked that page and the amend was now visible.So it’s telling me the cache is being cleared each and every time a new post is posted.
I’ve also noticed that if I delete a post it’s not clearing the the side panel but is clearing everything else (i.e. the news home page etc).
So when I deleted the post, my side panel is out of date which is what I would expect.
The delete post resulted in;
POST /wordpress/wp-admin/admin-ajax.php PURGE /category/awards/ PURGE /news/new-3/ PURGE /feed/rdf/ PURGE /feed/rss/ PURGE /feed/ PURGE /feed/atom/ PURGE /comments/feed/atom/ PURGE /comments/feed/ PURGE /news/new-3/feed/ PURGE /
Forum: Plugins
In reply to: [Proxy Cache Purge] Purge on new Posts in clearing all cacheI pressed the “Purge” button on the dashboard and got this;
GET /wordpress/wp-admin/index.php PURGE /.*
Forum: Plugins
In reply to: [Proxy Cache Purge] Purge on new Posts in clearing all cacheMorning and thanks for helping!
So I posted a new Post and I got this.
POST /wordpress/wp-admin/admin-ajax.php POST /wordpress/wp-admin/admin-ajax.php POST /wordpress/wp-admin/admin-ajax.php PURGE /category/announcements/ PURGE /news/new-1-2/ PURGE /feed/rdf/ PURGE /feed/rss/ PURGE /feed/ PURGE /feed/atom/ PURGE /comments/feed/atom/ PURGE /comments/feed/ PURGE /news/new-1-2/feed/ PURGE /
Forum: Plugins
In reply to: [Proxy Cache Purge] Purge on new Posts in clearing all cacheYes I do but not entirely sure how to access them or to check what is being passed?
Forum: Plugins
In reply to: [Proxy Cache Purge] Purge on new Posts in clearing all cacheHi there,
So I’m using Varnish 3.0.5
The pages I’m looking at have no relation to tags or categories which is why I’m puzzled.
If you visit this page https://www.nlg.nhs.uk/hospitals/grimsby/getting-here/ you’ll see in the side bar, we have a panel that pulls in the latest blog posts. This page here is simply a Page. I’m expecting this page to be cached and when I update the blog my side panel would become out-of-date as I’m not using EIS.
If I then go in and add a new blog post. I’m expecting the front page (which is https://www.nlg.nhs.uk/news/) to be flushed but not the other page and it’s totally independant.
What happens is the Getting here page is also flushed and my side panel updated.
I ran a few tests where I disabled the plugin and made a few random changes to other content pages. Then switched the plugin back on and added a new Post and and new changes are there. Which means when I add a new Post it is clearing all cache.
Based on what you’ve described this shouldn’t be happening – right?
The side panel is using the following code;
<?php $queryObject = new WP_Query( 'post_type=post&posts_per_page=3' ); // The Loop! if ($queryObject->have_posts()) { while ($queryObject->have_posts()) { $queryObject->the_post(); ?> <article class="side-feed__item" role="article"> <h3 class="item__heading"><i class="icon--chevron icon--inset"></i><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <div class="item__copy"><?php the_excerpt(); ?></div> <p class="item__meta">Posted <time datetime="<?php echo get_the_date('Y-m-d'); ?>"><?php echo get_the_date('d/m/Y'); ?></time></p> </article> <?php
Forum: Plugins
In reply to: [Proxy Cache Purge] Purge on new Posts in clearing all cacheJust to clarify this, I have a static front page for my site. When I add a new Post the front page is flushed and it appears all other pages in the site as well.
I’m using the Varnish VCL to linked to from Dreamhosts.
I’ve tested this as I’ve got a page in my site that has a support panel listing all the latest blog posts. When I add a new post this is flushed as well.
Forum: Plugins
In reply to: [Latest Tweets Widget] Embed the latest tweet in footer using codeThink I may have found this which works;
<?php echo latest_tweets_render_html( ‘username’, 1, false ); ?>
But how would I style it? Are there handles for me to use?