Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
1.3k views
in Q2A Core by
What I want,

I have the featured question plugin which posts a pinned question by ID.

 

I want to make a cron job, to insert the question to the database and pin it as featured question.

I already solved the cron job for featured question setting, but I dunno how to add a question in the database for user "test". The user test is already created.

 

Thankyou
Q2A version: 1.5.4

1 Answer

0 votes
by
edited by

You can check Q2A query by setting QA_DEBUG_PERFORMANCE of qa-config.php to TRUE. There are various methods of direct controlling MySQL by CRON. I often use "PHP" or "Stored Program" of server side. When processing by PHP, qa-async-send.php of lower plug-in may be consulted. 

Async Email

Stored Programs and Views

...