Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Hook To Delete Forum Cache
Avatar
FidoSysop
Clearwater Florida
Member

VIP
sp_UserOfflineSmall Offline
Mar 30, 2018 - 10:10 am

With Google going mobile first in their algorithm. I'm experimenting with using my caching plugin wp-fastest cache on Simple:Press. Normally the forum page is excluded. After testing my site on Google page speed insights both mobile and desktop were green.

However the forum being uncached was yellow. Not too shabby but trying to improve the score i removed the forum page cache exclusion. Received a 89 green score which is great. But the problem is post additions or revisions to a topic are not visible until the cache is dumped.

I know wp-fastest cache clears it's cache when blog post comments are added. Is their anyway to have Simple:Press trigger a cache dump on new posts or post revision?

Thanks.. wink

  • Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 30, 2018 - 12:05 pm

It is a thought. If there is an API to the cache plugin then it could, indeed, be flushed. Although there would be a small penalty to pay for doing that and the sense in doing it at all would largely depend on how busy your forum is.

There are, however, other issues with caching the forum page. The time since a post was made becomes quickly inaccurate. Whether a user is logged in or not can be displayed incorrectly. In fact they could be served the wrong forum data either way which, for a security conscious site with public and private forums would be a disaster.

i would worry that having to flush a cache each time someone logs in or logs out; when a new post is made, when a new user registers etc., etc., might just end up not only defeating the object but costing time. But I will think on it.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 30, 2018 - 1:45 pm

Think it's really big as Andy days  Keep in mind that all forum content appears on a single wp page.  So you would have to check the cache every page load. Even same user just going to a different topic woukd need a cache clear.

What needs to happen is the cache plugin needs to become canonical url aware instead of just wp page aware...then it could cache the url rewrite.magic page and possibly add some benefit  

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626