-
MODX Staff
- 10,725 Posts
There is an example of how to do it in the NewsPublisher snippet I believe.
Yeah, the example in NewsPublisher is the same as what I tried. Since I’m not directly using the ModX index file, it’s not working. I’m getting failures on all of the mysql functions called in manager/processors/cache_sync.class.processor.php, most likely due to the fact that I’m not directly accessing the API, but rather through a ModX API library.
I’m using the ModXAPI in the repository, but I’ve made some customizations to it, although nothing that should affect how it works overall. I’m able to utilize the ModX object through it, but for some reason it doesn’t accept standard mysql calls, only by using the modx->db object.