*

webcity

  • ****
  • 243 posts
Cache clearing after listing moderation
« on: November 18, 2023, 04:48:33 AM »
Hi,

I use the Cache plugin and the Item Validation plugins.

Whenever I delete a listing in the Item Validation plugin it deletes the whole cache.

Can anyone suggest a solution to not having the cache deleted after moderating ads?

Many thanks

*

MB Themes

Re: Cache clearing after listing moderation
« Reply #1 on: November 22, 2023, 10:59:35 AM »
@webcity
This create new problem, that listing will exists in search/home..
In functions.php of plugin you may find these hooks:

Code: [Select]
osc_add_hook('posted_item', 'cac_clean_posted', 1);
osc_add_hook('edited_item', 'cac_clean_edited', 1);
osc_add_hook('delete_item', 'cac_clean_deleted');

Comment/uncomment based on your preference.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots