q2a / question2answer

Question2Answer is a free and open source platform for Q&A sites, running on PHP/MySQL.
http://www.question2answer.org/
GNU General Public License v3.0
1.63k stars 628 forks source link

Invalidate cache when performing additional post operations #949

Closed pupi1985 closed 1 year ago

pupi1985 commented 2 years ago

There are a few situations that were being missed when invalidating question caches:

Having these cache invalidations set would allow users to configure longer cache periods.

svivian commented 1 year ago

Thanks for this. My original thought was to balance cache hits with too many cache invalidations, but I think you're right this allows longer cache periods (and therefore more time saved overall).