Forums › Forums › Search & Filter Pro › I need to manually rebuild my Cache each time a new download is added
Tagged: cache
- This topic has 5 replies, 3 voices, and was last updated 7 years, 7 months ago by Ross.
-
Anonymous(Private) March 31, 2017 at 7:59 pm #100701
Hi Guys,
You can find my Search at https://www.thehomeoffitness.com/shop/
Everytime one of my Vendors adds a new download, I need to manually rebuild my Cache for their new download to work with my search.
Is there any way to have the cache automatically rebuilt every so often or each time a new downloaded is added?
Regards,
EamonnTrevor(Private) March 31, 2017 at 9:19 pm #100725If you are using a script to add each download, then yes. See this documentation for the Update Cache for a Particular Post action.
Change the example post id to a variable, and then before that, after the download has saved, pass the returned post id from that save into this action.
Anonymous(Private) April 1, 2017 at 4:18 pm #100815Hi Trevor.
I’m not running any script to add each download. Instead, my vendors are adding their own downloads via Frontend Submissions.
Is there a way that I can set up the Cache to rebuild the cache every hour? Or perhaps each time the search is loaded?
Regards,
Eamonn.Trevor(Private) April 1, 2017 at 7:14 pm #100834I am wondering if this post/thread would help:
https://support.searchandfilter.com/forums/topic/cache-not-updated-automatically/page/2/#post-94346
Ross Moderator(Private) April 6, 2017 at 9:38 pm #101896Hi Eamonn
I had a quick thought and realised you were using Marketify, which means you are probably using the EDD FES plugin? then I think you might actually need the code from this post:
https://support.searchandfilter.com/forums/topic/filter-on-edd-search-results/page/3/#post-42911
The other one example we were referring to was the ACF plugin, and doing frontend submisions 🙂
Best
-
AuthorPosts