Forums › Forums › Search & Filter Pro › Clear Cache
- This topic has 4 replies, 2 voices, and was last updated 5 years, 2 months ago by Anonymous.
-
Anonymous(Private) August 20, 2019 at 2:32 pm #219351
Hi everyone,
so just to be clear, if I have a filtration system for a custom post type, I have to clear the cache every time a new post is published?
For example, this:
https://northernlightsccv.org/training/training-calendar/
has several submission every day from an exposed form. Does the site owner need to clear the cache each time a submission is published?Thanks
Anonymous(Private) August 20, 2019 at 2:53 pm #219361Hi Trevor,
some of the posts do not appear without filtration. In theory, every post should be present when the training-calendar page loads.I’m trying to eliminate possible causes, so I was hoping that it was NOT related to the cache. How does the cache work? How often does it build and would posts not being included if added after the last rebuild of the cache?
thanks
Trevor(Private) August 20, 2019 at 3:27 pm #219367Every time that the Update post button (save) is used in the editor, our plugin updates the cache for that one post. If you are using a front end post submission form, it is possible that form is triggering the WordPress save_post() function, but instead is writing direct to the database. That means, our plugin might not see that new post. There is an action that can be used by the import/form submission plugin to trigger our plugin to update the cache for that post:
-
AuthorPosts