I have a script that publishes/unpublishes categories every 30 minutes based on inventory imports. I have Joomla caching turned off and I have Jot Cache disabled, but every time I go to Joomla Maintenance / Clear Cache...the virtuemart categories are listed. How can I prevent VM Categories from being cached? I need these to always reflect live information. I'm confused because I have all caching disabled (or at least the two places I know about). Can you help point me in the right direction?
Have you turned off cache in the VM category module Basic Options?
in this case, you must get the cache and delete it manually after you did the imports. It is a two liner.
$cache = JFactory::getCache('com_virtuemart_cats','callback');
$cache->clean();
I am getting the following error after inserting that 2-liner at the end of my php file.
"Fatal error: Class 'JFactory' not found in /home/xxxx/public_html/folder/update_inventory.php on line 51"
The php is about 5 mysql queries (loading csv data files to temp table and comparing to vm inventory table and publishing/unpublishing items and categories based on inventory).
What do I need to add so that line is recognized? My php file is only queries updating tables.
if this is a standalone php script outside of Joomla you need to import the Joomla framework - "bootstrap" is the jargon - Google - plenty of examples