Cache refresh
-
I have a need to bulk update a lot of posts and I have a script that does that without issues. The script uses the standard
post.edit
method . I notice that this method performs the appropriate cache invalidation for the updated post, however it doesn't actually get reflected in the front-end. I assume this is because the script is running 'out of band' so to speak, and not within the core app. Is there a way to refresh the cache externally, or do I just have to restart nodebb after the bulk update finishes? -
Thank you, that works perfectly. In most cases something like this is much better handled through the write API. However in this instance, due to the large number of updates, it was much more efficient to process them through a script (roughly 50x faster).